fixing regexp for image src attr per comments on tutorial
This commit is contained in:
parent
1deb4cb40e
commit
ce8ff91b3f
@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
private function parseImageUrl(fromHtml:XMLList):String {
|
||||
var pattern:RegExp = /img src="(.+?)" /;
|
||||
var pattern:RegExp = /img src="(.+?)"/;
|
||||
var results:Array = pattern.exec(fromHtml);
|
||||
var imageURL:String = results[1]; // backreference 1 from pattern
|
||||
return imageURL;
|
||||
|
Loading…
Reference in New Issue
Block a user