Changeset 2574


Ignore:
Timestamp:
Jan 4, 2012, 9:34:09 PM (8 years ago)
Author:
goya
Message:

improve blank escaper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/doctrine/myTools.class.php

    r2414 r2574  
    148148  public static function escape_blanks($txt) {
    149149    $txt = preg_replace('/« /', '« ', $txt);
    150     $txt = preg_replace('/ +([0»:;\?!\-])/', ' \\1', $txt);
     150    $txt = preg_replace('/ +([0»:;\?!\-%])/', ' \\1', $txt);
    151151    return $txt;
    152152  }
Note: See TracChangeset for help on using the changeset viewer.