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

Commit eff1800

Browse files
committed
pending exact path preference, let first match win
1 parent 16834b7 commit eff1800

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
@@ -38,7 +38,7 @@ function applyPaths(paths, name) {
3838
// wildcard path match
3939
else {
4040
var slashCount = p.split('/').length;
41-
if (slashCount >= maxSlashCount &&
41+
if (slashCount > maxSlashCount &&
4242
name.substr(0, pathParts[0].length) == pathParts[0] &&
4343
name.substr(name.length - pathParts[1].length) == pathParts[1]) {
4444
maxSlashCount = slashCount;

0 commit comments

Comments
 (0)