Closed travistrue2008 closed 5 years ago
It looks like the regex output changes between versions 1.2.1 and 1.3.0 when the loose property is set to true:
1.2.1
1.3.0
loose
true
v.1.2.1: /^\/users(?:$|\/)/i v1.3.0: /^\/users(?=$|\/)/i
/^\/users(?:$|\/)/i
/^\/users(?=$|\/)/i
I get consistent output when it's not set though:
v1.2.1: /^\/users\/?$/i v.1.3.0: /^\/users\/?$/i
/^\/users\/?$/i
Yes, that's intentional. It was actually a bug fix, see #5
Closing, but if you're seeing a specific issue that this caused please let me know and can reopen. Thanks!
It looks like the regex output changes between versions
1.2.1
and1.3.0
when theloose
property is set totrue
:v.1.2.1:
/^\/users(?:$|\/)/i
v1.3.0:/^\/users(?=$|\/)/i
I get consistent output when it's not set though:
v1.2.1:
/^\/users\/?$/i
v.1.3.0:/^\/users\/?$/i