olivernn/lunr.js — pull request #124 by tony-jacobs (2014-12-15 19:21:10+00:00)
Title: Issue #99 - Update stemmer to use pre-initialized REGEX vars instead

When indexing a large number of records, the profiler reports that the constructors for the regex code is the hotspot - avoid that by caching the various regex.