mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
fix end of stream marker to handle languages like en_GB
when using language like 'en_GB' aspell reports it as 'en' in response to $$l
This commit is contained in:
@@ -27,7 +27,7 @@ class ASpellWorker
|
||||
@callback err, []
|
||||
|
||||
output = ""
|
||||
endMarker = new RegExp("^(#{language}|Error)$", "m")
|
||||
endMarker = new RegExp("^[a-z][a-z]", "m")
|
||||
@pipe.stdout.on "data", (chunk) =>
|
||||
output = output + chunk
|
||||
# We receive the language code from Aspell as the end of data marker
|
||||
|
||||
Reference in New Issue
Block a user