Comparing version 0.0.8 to 0.0.9
@@ -17,3 +17,4 @@ /** | ||
// Used for simplifying the romaji name to find close duplicates | ||
var cleanRegex = /aa|ee|ii|oo|uu|ou|'/ig; | ||
var cleanRegex = /aa|ee|ii|oo|uu|ou/ig; | ||
var cleanExtraRegex = /['-]/g; | ||
@@ -255,5 +256,7 @@ // Used for extracting the type from a line | ||
var cleanName = function(name) { | ||
return name.replace(cleanRegex, function(all) { | ||
return all[0] === "'" ? "" : all[0]; | ||
}); | ||
return name | ||
.replace(cleanExtraRegex, "") | ||
.replace(cleanRegex, function(all) { | ||
return all[0]; | ||
}); | ||
}; | ||
@@ -260,0 +263,0 @@ |
{ | ||
"name": "enamdict", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Look up Romaji names and correct surname/given name usage.", | ||
@@ -5,0 +5,0 @@ "main": "enamdict.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13117
351