Changeset 1534 for trunk/Assetylene

Show
Ignore:
Timestamp:
05/24/09 23:52:58 (6 months ago)
Author:
breese
Message:

improved some regexes so they are less greedy

Location:
trunk/Assetylene
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Assetylene/Makefile.PL

    r1524 r1534  
    33WriteMakefile( 
    44    NAME            => 'Assetylene', 
    5     VERSION         => '1.01', 
     5    VERSION         => '1.02', 
    66    DISTNAME        => 'Assetylene', 
    77); 
  • trunk/Assetylene/plugins/Assetylene/config.yaml

    r1524 r1534  
    11name: Assetylene 
    22description: Provides a new "Caption" field when inserting an asset into a post, and the ability to customize the HTML markup produced for publishing MT assets. 
    3 version: 1.01 
     3version: 1.02 
    44author_name: Six Apart Ltd. 
    55author_link: http://www.sixapart.com/ 
  • trunk/Assetylene/plugins/Assetylene/lib/Assetylene/CMS.pm

    r1525 r1534  
    9292 
    9393    $param->{form_tag} = $form_tag; 
    94     ($param->{form_style}) = $form_tag =~ /\bstyle="(.+?)"/s; 
    95     ($param->{form_class}) = $form_tag =~ /\bclass="(.+?)"/s; 
     94    ($param->{form_style}) = $form_tag =~ /\bstyle="([^\"]+)"/s; 
     95    ($param->{form_class}) = $form_tag =~ /\bclass="([^\"]+)"/s; 
    9696 
    9797    $param->{img_tag} = $img_tag; 
    9898    ($param->{img_height}) = $img_tag =~ /\bheight="(\d+)"/; 
    9999    ($param->{img_width}) = $img_tag =~ /\bwidth="(\d+)"/; 
    100     ($param->{img_src}) = $img_tag =~ /\bsrc="(.+)?"/s; 
    101     ($param->{img_style}) = $img_tag =~ /\bstyle="(.+?)"/s; 
    102     ($param->{img_class}) = $img_tag =~ /\bclass="(.+?)"/s; 
    103     ($param->{img_alt}) = $img_tag =~ /\balt="(.+?)"/s; 
     100    ($param->{img_src}) = $img_tag =~ /\bsrc="([^\"]+)"/s; 
     101    ($param->{img_style}) = $img_tag =~ /\bstyle="([^\"]+)"/s; 
     102    ($param->{img_class}) = $img_tag =~ /\bclass="([^\"]+)"/s; 
     103    ($param->{img_alt}) = $img_tag =~ /\balt="([^\"]+)"/s; 
    104104 
    105105    $insert_tmpl->param( $param );