pacproxy icon indicating copy to clipboard operation
pacproxy copied to clipboard

panic: (anonymous): Line 26506:51 Invalid regular expression: re2: Invalid (?=) <lookahead>

Open xinstein opened this issue 2 years ago • 0 comments

I'm trying to use pacproxy to convert shadowsocks pac to simple http proxy, but faced this error.

I actually located some ?='s in the shadowsocks generated pac file: .... Filter.elemhideRegExp = /^([^\/\*\|\@"!]*?)#(\@)?(?:([\w\-]+|\*)((?:\([\w\-]+(?:[$^*]?=[^\(\)"]*)?\))*)|#([^{}]+))$/; .... var candidates = text.toLowerCase().match(/[^a-z0-9%*][a-z0-9%]{3,}(?=[^a-z0-9%*])/g); ....

xinstein avatar Mar 13 '23 03:03 xinstein