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
Since the Hebrew characters are not a part of the astral plane the u flag is not really necessary.
u
// remove.js // line 11 module.exports = (text, options = {removeVowels: false}) => !options.removeVowels ? text.replace(/[\u0591-\u05F4, \uFB1D-\uFB4F]/gu, i => hebCharsRC[i]) : text.replace(/[\u0591-\u05F4, \uFB1D-\uFB4F]/gu, i => hebCharsRV[i]);
Probably need to redo in the manner of titForTas.js:
titForTas.js
module.exports = text => [...text].map(char => char in hebChars ? hebChars[char] : char) .reduce((a, c) => a + c)
The text was updated successfully, but these errors were encountered:
issue #5 problematic flag in regex
9d84fc2
No branches or pull requests
Since the Hebrew characters are not a part of the astral plane the
u
flag is not really necessary.Probably need to redo in the manner of
titForTas.js
:The text was updated successfully, but these errors were encountered: