Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 5548941

Browse files
committed
regex fix
1 parent 5be15fa commit 5548941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function SystemLoader(options) {
187187
}
188188
// wildcard path match
189189
else {
190-
var slashCount = p.match(/\//g).length;
190+
var slashCount = p.split('/').length;
191191
if (slashCount >= maxSlashCount &&
192192
name.substr(0, pathParts[0].length) == pathParts[0] &&
193193
name.substr(name.length - pathParts[1].length) == pathParts[1]) {

0 commit comments

Comments
 (0)