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

pull/2748/head
Matthew D. Miller 6 years ago
parent 3928208ab4
commit 8694e28edb

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

Loading…
Cancel
Save