klorenz / atom-regex-railroad-diagrams

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

Ruby expressions in %r{} error. #18

Closed mrinalwadhwa closed 9 years ago

mrinalwadhwa commented 10 years ago

This renders the diagram properly: /^\/folder\/.+\// =~ "/folder/test/"

But this: %r{^\/folder\/.+\/} =~ /folder/test/ Throws the following error:

error

amiuhle commented 10 years ago

ruby's %r{} regular expressions also don't need to escape /.

paradox460 commented 9 years ago

I am seeing this issue as well

ypresto commented 9 years ago

:+1: