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

SyntaxError: Invalid regular expression #2264

Open
ghost opened this issue Aug 16, 2023 · 1 comment
Open

SyntaxError: Invalid regular expression #2264

ghost opened this issue Aug 16, 2023 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Aug 16, 2023

Error in browser, works in node/server.

Uncaught SyntaxError: Invalid regular expression: /^[Α-ώ]+$/i: Range out of order in character class
var alpha = {
  // 'el-GR': /^[Α-ώ]+$/i,
  // 'ja-JP': /^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
  // 'ko-KR': /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
};
var alphanumeric = {
  // 'el-GR': /^[0-9Α-ω]+$/i,
  // 'ja-JP': /^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
  // 'ko-KR': /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
};

I don't know, tested on Linux Mint.

@ghost ghost added the 🐛 bug label Aug 16, 2023
@balogun14
Copy link

@chuyeow can you explain this a bit more

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

1 participant