Changeset 2573


Ignore:
Timestamp:
Jan 4, 2012, 9:33:47 PM (8 years ago)
Author:
komodo
Message:

improve blank escaper

File:
1 edited

Legend:

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

    r2437 r2573  
    157157  public static function escape_blanks($txt) {
    158158    $txt = preg_replace('/([«\-])\s+/', '\\1 ', $txt);
    159     $txt = preg_replace('/\s+([0»:;\?!\-])/', ' \\1', $txt);
     159    $txt = preg_replace('/\s+([0»:;\?!\-%])/', ' \\1', $txt);
    160160    return $txt;
    161161  }
Note: See TracChangeset for help on using the changeset viewer.