Ignore:
Timestamp:
11/12/09 18:37:12 (3 years ago)
Author:
MichaelTempest
Message:

Item2352: Use Foswiki's regex instead of a hard-coded regex, so that WysiwygPlugin will alw
ays "see" macros in the same way as Foswiki's renderer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm

    r5240 r5503  
    197197            if ( $token eq '%' && $stackTop =~ /}$/ ) { 
    198198                while ( scalar(@stack) 
    199                     && $stackTop !~ /^\n?%([A-Z0-9_:]+){.*}$/os ) 
     199                    && $stackTop !~ /^\n?%($Foswiki::regex{tagNameRegex}){.*}$/os ) 
    200200                { 
    201201                    $stackTop = pop(@stack) . $stackTop; 
     
    203203            } 
    204204            if (   $token eq '%' 
    205                 && $stackTop =~ m/^(\n?)%([A-Z0-9_:]+)({.*})?$/os ) 
     205                && $stackTop =~ m/^(\n?)%($Foswiki::regex{tagNameRegex})({.*})?$/os ) 
    206206            { 
    207207                my $nl = $1; 
Note: See TracChangeset for help on using the changeset viewer.