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
It always popup "Unexpected token: keyword (const)" error.
function matchTld(domain, options) { // for potentially unrecognized tlds, try matching against custom tlds if (options.customTlds) { // try matching against a built regexp of custom tlds const tld = domain.match(options.customTlds); if (tld !== null) { return tld[0]; } } const tries = (options.privateTlds ? [privateTrie] : emptyArr).concat(icannTrie); for (const trie of tries) { const tld = lookUp(trie, domain); if (tld !== null) { return "." + tld; } } return null; }
The reason is that there are some ES6 keyword (such as 'const') and so on.
The text was updated successfully, but these errors were encountered:
Should be fixed with v2.1.5
v2.1.5
Sorry, something went wrong.
No branches or pull requests
It always popup "Unexpected token: keyword (const)" error.
The reason is that there are some ES6 keyword (such as 'const') and so on.
The text was updated successfully, but these errors were encountered: