Skip to content

0.1.41

Pre-release
Pre-release
Compare
Choose a tag to compare
@eyberg eyberg released this 26 Mar 01:36
· 14 commits to master since this release
e866995
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.