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

Fails if CSS file already has a query sting #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fails if CSS file already has a query sting #6

wants to merge 5 commits into from

Conversation

kuddl
Copy link

@kuddl kuddl commented Feb 6, 2012

Hi there,
I love your script, but it failed on some of my projects, since sometimes my CSS files are generated via PHP.
Like "css.php?version=1".
There will be a additional '?' => "css.php?version=1?cachebust=1231231231123"

I added a method for sanitizing and added some simple tests.

You might cherry pick, or rewrite and incorporate if you like.

  • If a css file already has a query string, like css.css?env=develop,
    LIVECSS adds another "?" and it stops working.
  • Converted some tabs to spaces.
  • added some very simple tests

* If a css file already has a query string, like css.css?env=develop,
LIVECSS adds another "?" and it stops working.

* Converted some tabs to spaces.

* added some very simple tests
@philc
Copy link
Contributor

philc commented Feb 6, 2012

Ah, nice find! I'll pull this in in the next few days.

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

Successfully merging this pull request may close these issues.

None yet

2 participants