fix indexing

pull/5/head
Zlatin Balevsky 2019-06-20 17:57:36 +01:00
parent a455b4ad6e
commit 18d2b56563
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ class SearchIndex {
private static String[] split(String source) {
source = source.replaceAll(Constants.SPLIT_PATTERN, " ").toLowerCase()
source.split(" ")
String [] split = source.split(" ")
def rv = []
source.each { if (it.length() > 0) rv << it }
split.each { if (it.length() > 0) rv << it }
rv.toArray(new String[0])
}