Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local package regexp for packages with hyphen in name (#1596)
Currently there is a bug where because the regexp is liberal enough to allow either _ or - to delimit the break between name and version, a package with dash will fail. So for instance, a package like my-package_1.2.3 Will have a name of "my" and a version of "package_1.2.3". Not wanting to change this behaviour by simply changing the regex to only accept _ as a delimeter, I have changed the regex to split at the *last* match.
- Loading branch information