Ray's back-end modifications for sub-roles

This commit is contained in:
Christophe Vilayphiou committed 2011-12-28 20:57:18 +08:00
1 parent 62aaf79491
commit 75c9851dbc
10 files changed
+83 -35

No files matched your search

+8
View File
@@ -33,4 +33,12 @@ module ParserLayout
end
end
def parse_html_image(html)
html.scan(/(?<=\<img)(.*?)(?=\/\>)/){
$1.gsub(' ','').scan(/(?<=src=\")(.*?)(?=\")/){
return File.basename($1).gsub(/[\\\"]/, '')
}
}
end
end