Skip to content

Commit

Permalink
remove build artefacts lunr.js and lunr.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaiValentin committed May 2, 2014
1 parent a5268cc commit efe1dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lunr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1400,12 +1400,13 @@ lunr.stemmer = (function(){
}
}

// Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)
re = /^(.+?[^aeiou])y$/;
// Step 1c
re = /^(.+?)y$/;
if (re.test(w)) {
var fp = re.exec(w);
stem = fp[1];
w = stem + "i";
re = new RegExp(s_v);
if (re.test(stem)) { w = stem + "i"; }
}

// Step 2
Expand Down
Loading

0 comments on commit efe1dfb

Please sign in to comment.