We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to detect a phone number as a Number and it seems that Knwl.js accepts only strings and the following TypeError occurs.
Number
TypeError: str.toLowerCase is not a function at Knwl.init (/path/knwl.js:1154:23)
Here is a test case that reproduces the problem.
var knwl = new Knwl(); var phone = 5555555555; knwl.init(phone); console.log(knwl.get('phones'));
To fix the problem, we may change line 1154 to the following
var lowercase = String(str).toLowerCase();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to detect a phone number as a
Number
and it seems that Knwl.js accepts only strings and the following TypeError occurs.Here is a test case that reproduces the problem.
To fix the problem, we may change line 1154 to the following
The text was updated successfully, but these errors were encountered: