mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
parent
589813f233
commit
f247686970
@ -107,7 +107,7 @@ function diffPartsToChars(text1,text2,mode) {
|
|||||||
var lineEnd = -1;
|
var lineEnd = -1;
|
||||||
var lineArrayLength = lineArray.length,
|
var lineArrayLength = lineArray.length,
|
||||||
regexpResult;
|
regexpResult;
|
||||||
const searchRegexp = /\W+/g;
|
var searchRegexp = /\W+/g;
|
||||||
while(lineEnd < text.length - 1) {
|
while(lineEnd < text.length - 1) {
|
||||||
if(mode === "words") {
|
if(mode === "words") {
|
||||||
regexpResult = searchRegexp.exec(text);
|
regexpResult = searchRegexp.exec(text);
|
||||||
|
Loading…
Reference in New Issue
Block a user