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,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"esnext": true
|
||||
}
|
||||
|
||||
8
index.js
8
index.js
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
var wildstring = {
|
||||
var wildstring = (function(module) {
|
||||
|
||||
wildstring = {
|
||||
wildcard: '*',
|
||||
caseSensitive: true
|
||||
};
|
||||
@@ -144,4 +146,6 @@ wildstring.replace = function (pattern, strings) {
|
||||
return result;
|
||||
};
|
||||
|
||||
if (module) { module.exports = wildstring; }
|
||||
module.exports = wildstring;
|
||||
return wildstring;
|
||||
}(module || {}));
|
||||
|
||||
Reference in New Issue
Block a user