mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 03:27:18 +00:00
Change separators to match doc (#7303)
This commit is contained in:
parent
de6b866f22
commit
4c2979286b
@ -1287,7 +1287,7 @@ exports.search = function(text,options) {
|
|||||||
console.log("Regexp error parsing /(" + text + ")/" + flags + ": ",e);
|
console.log("Regexp error parsing /(" + text + ")/" + flags + ": ",e);
|
||||||
}
|
}
|
||||||
} else if(options.some) {
|
} else if(options.some) {
|
||||||
terms = text.trim().split(/ +/);
|
terms = text.trim().split(/[^\S\xA0]+/);
|
||||||
if(terms.length === 1 && terms[0] === "") {
|
if(terms.length === 1 && terms[0] === "") {
|
||||||
searchTermsRegExps = null;
|
searchTermsRegExps = null;
|
||||||
} else {
|
} else {
|
||||||
@ -1298,7 +1298,7 @@ exports.search = function(text,options) {
|
|||||||
searchTermsRegExps.push(new RegExp("(" + regExpStr + ")",flags));
|
searchTermsRegExps.push(new RegExp("(" + regExpStr + ")",flags));
|
||||||
}
|
}
|
||||||
} else { // default: words
|
} else { // default: words
|
||||||
terms = text.split(/ +/);
|
terms = text.split(/[^\S\xA0]+/);
|
||||||
if(terms.length === 1 && terms[0] === "") {
|
if(terms.length === 1 && terms[0] === "") {
|
||||||
searchTermsRegExps = null;
|
searchTermsRegExps = null;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user