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

Check strings for escaped regex #70

Closed
baelter opened this issue Apr 22, 2016 · 4 comments
Closed

Check strings for escaped regex #70

baelter opened this issue Apr 22, 2016 · 4 comments

Comments

@baelter
Copy link

baelter commented Apr 22, 2016

Would be nice if strings where unescaped and checked for regex type.

e.g. regex in json string.

@klorenz
Copy link
Owner

klorenz commented Apr 26, 2016

Hi Anders,

I do not know exactly what you mean. JSON does not know regexes. Do you think
of syntax highlight descriptions? If so, please take a look at another package
of mine, which you can use for writing coffeescript or javascript and generate
the syntax theme from it: https://www.npmjs.com/package/atom-syntax-tools

Best regards, Kiwi

Am 22.04.2016 um 20:26 schrieb Anders Bälter:

Would be nice if strings where unescaped and checked for regex type.

e.g. regex in json string.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#70

@baelter
Copy link
Author

baelter commented Apr 27, 2016

{
  "var" : "^.*\\d+§"
}

escaped regex in strings like this.

@edgerunner
Copy link

I think there would be a lot of cases where a regex in a string would be very hard to tell apart from a regular string, and vice versa.

A better solution may be the ability to invoke the diagram manually (via a keyboard shortcut or menu command) in which case it could evaluate a string literal as regex.

@baelter
Copy link
Author

baelter commented Apr 6, 2017

Agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants