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

No files matched your search

-1
View File
@@ -11,6 +11,5 @@
"node": true,
"sub": true,
"undef": true,
"unused": true,
"esnext": true
}
+6 -2
View File
@@ -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 || {}));