nahamsec / JSParser

783 stars 178 forks source link

Updated regex to avoid matching JavaScript regex #4

Closed 1lastBr3ath closed 7 years ago

1lastBr3ath commented 7 years ago

I closed my previous PR because of a typo. The refined regex is as follows;

regex = "[^/][`'\"]([\/][a-zA-Z0-9_.-]+)+(?!\/g|i|m|u|y|;|,)"