Modified original regex rule to only catch instances of bare /regex/

This commit is contained in:
Matthew D. Miller 2018-10-10 14:27:36 -05:00
parent 3928208ab4
commit 8694e28edb

View file

@ -505,7 +505,7 @@ export const language = <ILanguage>{
// RegExp // RegExp
[ [
/[goseximacplud]*[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, /[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
'regexp', 'regexp',
], ],