You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while trying to parse a code that connects to a mongodb database, acorn in its latest version has a problem dealing with this regular expression: '^(?<protocol>[^/]+):\\/\\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)'
Here is the error:
SyntaxError: Invalid regular expression: /^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/: Invalid group (12:21)
at Parser.pp$4.raise (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3459:15)
at RegExpValidationState.raise (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3705:17)
at Parser.pp$1.regexp_eatCapturingGroup (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:4013:15)
at Parser.pp$1.regexp_eatExtendedAtom (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:4032:12)
at Parser.pp$1.regexp_eatTerm (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3882:59)
at Parser.pp$1.regexp_alternative (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3863:52)
at Parser.pp$1.regexp_disjunction (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3847:10)
at Parser.pp$1.regexp_pattern (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3822:10)
at Parser.pp$1.validateRegExpPattern (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:3798:10)
at Parser.pp.readRegexp (/mnt/home/usr/Documents/jalangi2/node_modules/acorn/dist/acorn.js:5154:10) {
pos: 656,
loc: Position { line: 12, column: 21 },
raisedAt: 763
The text was updated successfully, but these errors were encountered:
Hi,
while trying to parse a code that connects to a mongodb database, acorn in its latest version has a problem dealing with this regular expression:
'^(?<protocol>[^/]+):\\/\\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)'
Here is the error:
The text was updated successfully, but these errors were encountered: