Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit adbc982

Browse files
committed
Make the regex less greedy (Fixes #31)
In the minified files, the greedy regexp only replaced the first url() occurrence (and left an unclosed string)
1 parent a47d4ed commit adbc982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/development_tasks/jquery_mobile_rails_tasks.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ task :"jquery_mobile_rails_css_fix" do
1111
file_content = ''
1212
file_content = File.read(css_file_name, mode: "r:UTF-8")
1313

14-
file_content.gsub! /url\(\"*images\/(.*\.)(png|gif)\"*\)/ do
14+
file_content.gsub! /url\(\"*images\/(.*?\.)(png|gif)\"*\)/ do
1515
"image-url(\"jquery-mobile/#{$1}#{$2}\")"
1616
end
1717

0 commit comments

Comments
 (0)