Permalink
Browse files

better string normalization

  • Loading branch information...
Glench committed Sep 21, 2017
1 parent 7008e99 commit 4fb0a09a530d064463c11987a964c28b0a483aa0
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/fuzzyset.js
  2. +1 −1 package.json
@@ -50,7 +50,7 @@ var FuzzySet = function(arr, useLevenshtein, gramSizeLower, gramSizeUpper) {
return 1 - distance / str2.length;
}
};
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF, ]+/;
var _nonWordRe = /[^a-zA-Z0-9\u00C0-\u00FF, ]+/g;
var _iterateGrams = function(value, gramSize) {
gramSize = gramSize || 2;
@@ -1,7 +1,7 @@
{
"name":"fuzzyset.js",
"description":"A fuzzy string set for JavaScript",
"version":"0.0.4",
"version":"0.0.5",
"homepage":"http://Glench.github.com/fuzzyset.js",
"repository":"git://github.com/Glench/fuzzyset.js.git",
"author":"Glen Chiacchieri (http://glench.com/)",

0 comments on commit 4fb0a09

Please sign in to comment.