regexp-tree icon indicating copy to clipboard operation
regexp-tree copied to clipboard

Meta character . in characterClass is allowed?

Open Fazerty opened this issue 6 years ago • 0 comments

Hello,

Adding the meta specialCharacter '.' in a CharacterClass shouldn't lead to an error?

Generate a regexp from

{"body":
    {"type":"CharacterClass",
     "expressions": [{"type":"Char","value":".","kind":"meta"}]},
  "flags":"gm","type":"RegExp"}

has this result /[.]/gm

Best regards

Fazerty avatar Jan 07 '19 08:01 Fazerty