Skip to content

Commit 677b7f5

Browse files
committed
remove id validation, to make module which defined by nonstandard id can run
1 parent 754a01f commit 677b7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/esl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ var esl;
15111511
function parseId(id) {
15121512
var segs = id.split('!');
15131513

1514-
if (/^[-_a-z0-9\.]+(\/[-_a-z0-9\.]+)*$/i.test(segs[0])) {
1514+
if (segs[0]) {
15151515
return {
15161516
module : segs[0],
15171517
resource : segs[1]

0 commit comments

Comments
 (0)