SimpleModifyHeaders icon indicating copy to clipboard operation
SimpleModifyHeaders copied to clipboard

Semicolon to separate URL patterns doesn't work

Open ysrn opened this issue 6 years ago • 4 comments

Using FF 68.0.1. URL pattern of: *://*.x.com/* -- working great. URL pattern of: *://*.x.com/*; *://*.y.com/* -- never gets applied either to x.com nor y.com.

I see the next version allows assigning rules to specific URLs, so maybe that's already covered.

EDIT: It was the space after the semicolon. Doh. In my defense it's fairly common to want it there :) Using target.split(/\s*;\s*/) would be appreciated.

ysrn avatar Aug 15 '19 21:08 ysrn

I will add this to the next version

didierfred avatar Aug 24 '19 18:08 didierfred

done in release 1.7.0

see commit https://github.com/didierfred/SimpleModifyHeaders/commit/ea11a7a52c7e6701f151bae3665cf455b26b94f2

didierfred avatar Oct 31 '21 18:10 didierfred

Not quite... s.replace(' ','') will only replace the first space in the string. You want s.replace(/\s/g,'')

ysrn avatar Oct 31 '21 18:10 ysrn

yes you are right , i reopen the issue

didierfred avatar Nov 04 '21 22:11 didierfred