nanoc-template icon indicating copy to clipboard operation
nanoc-template copied to clipboard

Concatenation filter doesn't work for me

Open dimilau opened this issue 13 years ago • 1 comments

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_-/.

dimilau avatar Jan 06 '12 00:01 dimilau

Never noticed it before. Maybe a Ruby version issue?

I would gladly take pull request for it.

avdgaag avatar Jan 06 '12 10:01 avdgaag