Skip to content

Commit

Permalink
v0.3.21 FIX whitespace regex split
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jan 28, 2019
1 parent 15a6e2b commit cdfe44c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
10 changes: 5 additions & 5 deletions flexsearch.compact.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions flexsearch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;/**!
* @preserve FlexSearch v0.3.2
* @preserve FlexSearch v0.3.21
* Copyright 2019 Nextapps GmbH
* Author: Thomas Wilkerling
* Released under the Apache 2.0 Licence
Expand Down Expand Up @@ -121,11 +121,12 @@
* @const {RegExp}
*/

const regex_split = regex("[ -\/]");
const regex_split = regex("[\\s/-]");
const filter = {};
const stemmer = {};

/**
*
* @const {Object<string|number, number>}
*/

Expand Down Expand Up @@ -1359,9 +1360,9 @@

const global_encoder_balance = (function(){

const regex_whitespace = regex("\\s\\s+"),
const regex_whitespace = regex("\\s+"),
regex_strip = regex("[^a-z0-9 ]"),
regex_space = regex("[-\/]"),
regex_space = regex("[-/]"),
regex_vowel = regex("[aeiouy]");

/** @const {Array} */
Expand Down Expand Up @@ -1406,9 +1407,9 @@

"simple": (function(){

const regex_whitespace = regex("\\s\\s+"),
const regex_whitespace = regex("\\s+"),
regex_strip = regex("[^a-z0-9 ]"),
regex_space = regex("[-\/]"),
regex_space = regex("[-/]"),
regex_a = regex("[àáâãäå]"),
regex_e = regex("[èéêë]"),
regex_i = regex("[ìíîï]"),
Expand Down
12 changes: 6 additions & 6 deletions flexsearch.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdfe44c

Please sign in to comment.