diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-28 21:55:10 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-28 21:55:10 -0500 |
commit | c0f656c0a644f49ce3b9ea9e53d95d3cbc4a4135 (patch) | |
tree | d576da8868e998a894ee4cbbac536ca6f0d1d886 /lib | |
parent | v4 (v3): version & changelog (diff) |
v4: param_make, :cover_image: regex, less finicky match of image & details
* [bug reported by Mikael Böök]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v4/param_make.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v4/param_make.rb b/lib/sisu/v4/param_make.rb index ce35307c..5d184897 100644 --- a/lib/sisu/v4/param_make.rb +++ b/lib/sisu/v4/param_make.rb @@ -460,7 +460,7 @@ module SiSU_Param_Make s=@h['cover_image'].split(/\s*;\s*/) s=s[0] #if image={} - if s =~/{(\S+\.(?:jpg|png|gif))(?:\s+(\d+x\d+))?\s+(?:"(.+?)")?\s*}image/ + if s =~/{\s*(\S+\.(?:jpg|png|gif))(?:\s+(\d+x\d+))?(?:\s+"(.+?)")?\s*}image/ image[:cover]=$1 if $2 image[:dimensions]=$2 |