Skip to content

Commit

Permalink
no-regexp-lookbehind.js - fix negative lookbehind pattern (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghbob authored Oct 24, 2024
1 parent 9d028d2 commit f2a25b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-regexp-lookbehind.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const hasLookbehind = s => s.includes('(?<=') || s.includes('(?<!)')
const hasLookbehind = s => s.includes('(?<=') || s.includes('(?<!')

module.exports = (context, badBrowser) => ({
'Literal[regex]'(node) {
Expand Down

0 comments on commit f2a25b1

Please sign in to comment.