|
@@ -113,7 +113,7 @@ class ASpellWorker {
|
|
|
|
|
|
|
|
this.pipe.stdout.setEncoding('utf8') // ensure utf8 output is handled correctly
|
|
this.pipe.stdout.setEncoding('utf8') // ensure utf8 output is handled correctly
|
|
|
let output = ''
|
|
let output = ''
|
|
|
- const endMarkerRegex = new RegExp('^[a-z][a-z]', 'gm')
|
|
|
|
|
|
|
+ const endMarkerRegex = /^[a-z]{2}/gm
|
|
|
this.pipe.stdout.on('data', data => {
|
|
this.pipe.stdout.on('data', data => {
|
|
|
// We receive the language code from Aspell as the end of data marker in
|
|
// We receive the language code from Aspell as the end of data marker in
|
|
|
// the data. The input is a utf8 encoded string.
|
|
// the data. The input is a utf8 encoded string.
|