Explorar o código

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
Brian Gough %!s(int64=11) %!d(string=hai) anos
pai
achega
01d5322ef3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/spelling/app/coffee/ASpellWorker.coffee

+ 1 - 1
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