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

Concatenation filter doesn't work for me #17

Open
dimilau opened this issue Jan 6, 2012 · 1 comment
Open

Concatenation filter doesn't work for me #17

dimilau opened this issue Jan 6, 2012 · 1 comment

Comments

@dimilau
Copy link

dimilau commented Jan 6, 2012

concatenation filter doesn't work for me when adding files relative to the current directory, until I modified the regex

  def run(content, args = {})
    content.gsub(%r{^\s*(?:(?://|#) require |@import url)\(?([a-zA-Z0-9_\-\/\.]+)(?:\);)?$}) do |m|
        load_file($1) || m
    end
  end

excaping / in a-zA-Z0-9_-/.

@avdgaag
Copy link
Owner

avdgaag commented Jan 6, 2012

Never noticed it before. Maybe a Ruby version issue?

I would gladly take pull request for it.

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

2 participants