yize / xswitch

A Chrome Extension for redirecting/forwarding request urls
https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg
MIT License
992 stars 121 forks source link

When url contains `?` , caused bug #1

Closed yize closed 6 years ago

yize commented 6 years ago

url like a.com/a.js?t=1

new RegExp('a.com/a.js?t=1').test('a.com/a.js?t=1')
// false