question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parser will break if file contains regex with string char

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
teemuqcommented, Nov 18, 2018

Thank you @dsherret! I tested the 2.0 with the new config and it works like a charm. Good job!

0reactions
dsherretcommented, Nov 19, 2018

Great! Thanks for letting me know it worked!

If you run into any more problems let me know.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found