klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

support for more complicated regex expression like email verification #89

Closed skywalkerlw closed 7 years ago

skywalkerlw commented 7 years ago

it does not work this kind of expression (email verification)

var re = /^(([^>()[].,;:s@"]+(.[^<()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/

mikesprague commented 7 years ago

Seems to be working fine. I would suspect at least one of the following:

  1. The plugin is installed but not enabled
  2. Your cursor isn't currently inside the regex
  3. You don't have a "grammar" selected (e.g. it's set to JavaScript in my screenshot)

atom-regex-railroad-issue-89