better-exceptions/better_exceptions
Riley Shaw 4dab3e218a fix closing single quote regex class for comment pattern (#89)
* fix COMMENT_REGXP

i noticed a couple of bugs in the regular expression while testing.

the first bug is found when a line doesn't have a comment but has `#` in a string. the matcher seems to forcefully fetch the `#` from inside of the string. [proof](https://regex101.com/r/tUCeTa/1). to fix this i have made the comment optional.

the second bug was introduced because a `"` was put where a `'` should have been. this causes a `'` delimited string containing a `"` to be matched incorrectly. [proof](https://regex101.com/r/qlunxG/1). to fix this i have replaced the `"` with `\'`

* exclude optional comment
2019-06-17 18:08:41 +02:00
..
2019-05-07 23:12:13 +02:00