Skip to content

Commit

Permalink
Don't include underscore in first capture group of the regular expres…
Browse files Browse the repository at this point in the history
…sion.
  • Loading branch information
rbotha78 committed Oct 2, 2019
1 parent 9350b99 commit 2f20e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Package {
// consistent.
return this._cleanPath(localPath)
.replace(/(.*jcr_root)|(\.xml$)|(\.dir)/g, '')
.replace(/\/_([^/]*)_([^/]*)$/g, '/$1:$2')
.replace(/\/_([^/^_]*)_([^/]*)$/g, '/$1:$2')
}
}

Expand Down

0 comments on commit 2f20e42

Please sign in to comment.