Filter not matching remote https url
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
No repository file or test is named in the issue. Start by reproducing the custom rule against relative and https:// URLs, then trace the filter matching entry point; done means establishing whether remote absolute URLs are supported and covering the reported behavior with a regression test or a clear documented limitation.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 383
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from postcss/postcss-url
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
postcss/postcss-url#183 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
postcss/postcss-url#182 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
postcss/postcss-url#181 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
postcss/postcss-url#180 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
postcss/postcss-url#179 ·
All issues in postcss/postcss-url
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
invoiceninja/invoiceninja#13320 ·
Maintainers usually reply within 1 day
-
NoCode.vue, Task.vue: replace explicit `any` with real typesPossibly taken @prayas-bit claimed this today. Openarea/frontend good first issue kind/cooldown
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
kestra-io/kestra#20347 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ubuntu/gnome-shell-extension-appindicator#676 · 1 comment ·