mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
Update word regex for spellcheck
Adds Latin Extended-A characters to word regex to prevent splitting words half way through on characters like ąęćółżźńś.
This commit is contained in:
+1
-1
@@ -171,7 +171,7 @@ define [
|
||||
positions = []
|
||||
for line, row in lines
|
||||
if !linesToProcess? or linesToProcess[row]
|
||||
wordRegex = /\\?['a-zA-Z\u00C0-\u00FF]+/g
|
||||
wordRegex = /\\?['a-zA-Z\u00C0-\u017F]+/g
|
||||
while (result = wordRegex.exec(line))
|
||||
word = result[0]
|
||||
if word[0] == "'"
|
||||
|
||||
Reference in New Issue
Block a user