Skip to content

Commit f2a25b1

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/no-regexp-lookbehind.js

Lines changed: 1 addition & 1 deletion
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)