Created
March 16, 2017 04:58
-
-
Save wam/a86c51eaad03689a14fcd0d58e6cca0c to your computer and use it in GitHub Desktop.
Revisions
-
wam created this gist
Mar 16, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ # pass 1 /<img src="<%= ENV\["IMAGE_URL"\] %>([^"]+)" ([^>]+)>/ image_tag("/static/images$1", $2) # => image_tag("/static/images/icons/app-ui-logo-white.png", id="topbar-logo" alt="Freedom logo") # pass 2 /(\w+)="([^"]+)"/ $1: $2, # => image_tag("/static/images/icons/app-ui-logo-white.png", id: "topbar-logo", alt: "Freedom logo",) # pass 3 /,\)/ )