wrap in an anonymous function to limit globals in the namespace
module.exports to make node work
This commit is contained in:
deltreey
2015-08-03 23:43:02 -04:00
parent e8af30f631
commit efff2f0610
2 changed files with 6 additions and 3 deletions

View File

@@ -11,6 +11,5 @@
"node": true, "node": true,
"sub": true, "sub": true,
"undef": true, "undef": true,
"unused": true,
"esnext": true "esnext": true
} }

View File

@@ -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 || {}));