From 01d5322ef3b65d2d5af31bcfbe40fb5a89a95023 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 12 Mar 2015 14:41:23 +0000 Subject: [PATCH] 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 --- services/spelling/app/coffee/ASpellWorker.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/spelling/app/coffee/ASpellWorker.coffee b/services/spelling/app/coffee/ASpellWorker.coffee index e8b3aadb78..168be52ee6 100644 --- a/services/spelling/app/coffee/ASpellWorker.coffee +++ b/services/spelling/app/coffee/ASpellWorker.coffee @@ -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