Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter not matching remote https url #172

Open
sayowayah opened this issue May 10, 2022 · 0 comments
Open

Filter not matching remote https url #172

sayowayah opened this issue May 10, 2022 · 0 comments

Comments

@sayowayah
Copy link

sayowayah commented May 10, 2022

Hello, my custom rules are working fine when matching relative urls or absolute urls that begin with "/". However, I can't seem to match a full remote absolute url (i.e. including the https://).

For example,
filter: /bar.jpg$/ will match url("/foo/bar.jpg") but it will skip url("https://test.com/foo/bar.jpg") (I've tried adding .* at the front of the regex as well to no avail).

Just wondering if I'm missing a setting somewhere or if the library simply doesn't support this use case?
The reason I'm trying to do this is to dynamically switch my cdn image links to a backup domain in emergencies.

@sayowayah sayowayah changed the title Filter not matching absolute https url Filter not matching remote https url May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant