Преглед изворни кода

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 пре 11 година
родитељ
комит
01d5322ef3
1 измењених фајлова са 1 додато и 1 уклоњено
  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, []
 				@callback err, []
 
 
 		output = ""
 		output = ""
-		endMarker = new RegExp("^(#{language}|Error)$", "m")
+		endMarker = new RegExp("^[a-z][a-z]", "m")
 		@pipe.stdout.on "data", (chunk) =>
 		@pipe.stdout.on "data", (chunk) =>
 			output = output + chunk
 			output = output + chunk
 			# We receive the language code from Aspell as the end of data marker
 			# We receive the language code from Aspell as the end of data marker