Merge pull request #371 from maxnordlund/patch-1

Fix typo
This commit is contained in:
Faisal Salman 2019-03-26 13:39:08 +07:00 committed by GitHub
commit 89635fcc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,15 +45,15 @@
var util = {
extend : function (regexes, extensions) {
var margedRegexes = {};
var mergedRegexes = {};
for (var i in regexes) {
if (extensions[i] && extensions[i].length % 2 === 0) {
margedRegexes[i] = extensions[i].concat(regexes[i]);
mergedRegexes[i] = extensions[i].concat(regexes[i]);
} else {
margedRegexes[i] = regexes[i];
mergedRegexes[i] = regexes[i];
}
}
return margedRegexes;
return mergedRegexes;
},
has : function (str1, str2) {
if (typeof str1 === "string") {