Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unterminated character class (RegExp issue) #5

Closed
pnemi opened this issue Dec 28, 2017 · 1 comment
Closed

Unterminated character class (RegExp issue) #5

pnemi opened this issue Dec 28, 2017 · 1 comment
Labels

Comments

@pnemi
Copy link

pnemi commented Dec 28, 2017

I have an issue with nspell, it yields "unterminated char class" in node_modules/nspell/lib/util/affix.js:300:10.

/node_modules/nspell/lib/util/affix.js:300
return new RegExp(source + C_DOLLAR);
^

SyntaxError: Invalid regular expression: /[aeiouyáéíóúýůěr][^aeiouyáéíóúýůěrl][^aeiouy$/: Unterminated character class
at new RegExp ()
at end (/node_modules/nspell/lib/util/affix.js:300:10)
at affix (/node_modules/nspell/lib/util/affix.js:210:59)
at new NSpell (/node_modules/nspell/lib/index.js:50:9)
at NSpell (/node_modules/nspell/lib/index.js:26:12)
at dictionary ([stdin]:12:18)
at /node_modules/dictionary-cs/index.js:21:9
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:528:3)

@wooorm wooorm closed this as completed in 83d0e69 Feb 3, 2018
@wooorm
Copy link
Owner

wooorm commented Feb 3, 2018

It looks like a bug in dictionary-cs. It includes this line:

SFX A   nout        l          [aeiouyáéíóúýůěr][^aeiouyáéíóúýůěrl][^aeiouy

...which is broken.

@wooorm wooorm added the bug label Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants