bugfix
wrap in an anonymous function to limit globals in the namespace module.exports to make node work
This commit is contained in:
@@ -11,6 +11,5 @@
|
|||||||
"node": true,
|
"node": true,
|
||||||
"sub": true,
|
"sub": true,
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"unused": true,
|
|
||||||
"esnext": true
|
"esnext": true
|
||||||
}
|
}
|
||||||
|
|||||||
8
index.js
8
index.js
@@ -1,6 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var wildstring = {
|
var wildstring = (function(module) {
|
||||||
|
|
||||||
|
wildstring = {
|
||||||
wildcard: '*',
|
wildcard: '*',
|
||||||
caseSensitive: true
|
caseSensitive: true
|
||||||
};
|
};
|
||||||
@@ -144,4 +146,6 @@ wildstring.replace = function (pattern, strings) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (module) { module.exports = wildstring; }
|
module.exports = wildstring;
|
||||||
|
return wildstring;
|
||||||
|
}(module || {}));
|
||||||
|
|||||||
Reference in New Issue
Block a user