Parser will break if file contains regex with string char
See original GitHub issueI just thought of this scenario (untested, but I’m pretty sure it won’t work):
const t = /`/g;
nameof(T); // won't work
Basically, the parser needs to be improved to detect when it’s within a regular expression literal.
Edit 2018-05-01: This is a very rare scenario to encounter, but I should fix this ASAP.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Regular expression to match a line that doesn't contain a word
The regex above will match any string, or line without a line break, not containing the (sub)string 'hede'. As mentioned, this is not...
Read more >Everything you need to know about Regular Expressions
After reading this article you will have a solid understanding of what regular expressions are, what they can do, and what they can't...
Read more >Use regular expressions to parse text | golang-book
Regular Expressions or RegEx for short, is used for searching and replacing text. Technically a RegEx is a sequence of characters that specifies...
Read more >Tutorial: Python Regex (Regular Expressions) for Data Scientists
In this Python regex tutorial, learn how to use regular expressions and the pandas library to manage large data sets during data analysis....
Read more >Split strings in Python (delimiter, line break, regex, etc.)
This article describes how to split strings by delimiters, line breaks, regular expressions, and the number of characters in Python.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @dsherret! I tested the 2.0 with the new config and it works like a charm. Good job!
Great! Thanks for letting me know it worked!
If you run into any more problems let me know.