Skip to content

Commit f2a25b1

Browse files
authored
no-regexp-lookbehind.js - fix negative lookbehind pattern (#42)
1 parent 9d028d2 commit f2a25b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-regexp-lookbehind.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const hasLookbehind = s => s.includes('(?<=') || s.includes('(?<!)')
3+
const hasLookbehind = s => s.includes('(?<=') || s.includes('(?<!')
44

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

0 commit comments

Comments
 (0)