wordpos icon indicating copy to clipboard operation
wordpos copied to clipboard

lookup, Cannot read property 'toLowerCase' of undefined

Open Truemedia opened this issue 4 years ago • 2 comments

I get this error when using cli with following command:

wordpos get over

Not sure if it's an issue progmatically aswell

Truemedia avatar Nov 21 '21 14:11 Truemedia

I can reproduce:

$ wordpos get over
  return word.toLowerCase().replace(/\s+/g, '_');

"over" is a stop-word and that's causing the error. Try wordpos -w get over to not strip stopwords for now.

moos avatar Nov 21 '21 18:11 moos

Ah that makes sense and yes that works for me thanks

Truemedia avatar Nov 21 '21 19:11 Truemedia