bugfix
wrap in an anonymous function to limit globals in the namespace module.exports to make node work
This commit is contained in:
1 parent
e8af30f631
commit
efff2f0610
2 files changed
+6
-3
No files matched your search
@@ -11,6 +11,5 @@
|
||||
"node": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"esnext": true
|
||||
}
|
||||
@@ -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