Skip to content

SyntaxError: Invalid regular expression #2264

Open
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions