http-party/node-http-proxy

(bug) isSSL regex is NOT doing what you think it's doing.

WORMSS opened this issue · 1 comments

isSSL = /^https|wss/;

/^https|wss/.test("httpstuff") // true
/^https|wss/.test("cowss") // true

I assume you either way

- /^https|wss/
+ /^https:$|^wss:$/
or
+ /^(?:https|wss):$/
or if you don't mind the creation of a capturing group, it makes it easier to read
+ /^(https|wss):$/
WORMSS commented

Is this package not maintained at all?