Changeset 2448


Ignore:
Timestamp:
Nov 2, 2011, 5:39:24 AM (9 years ago)
Author:
komodo
Message:

et moins de faux positifs

File:
1 edited

Legend:

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

    r2447 r2448  
    314314        $match = $matches[3];
    315315        sfProjectConfiguration::getActive()->loadHelpers(array('Url'));
    316         for($i = 0 ; $i < count($match) ; $i++) if (!preg_match('/ du /', $match[$i])) {
     316        for($i = 0 ; $i < count($match) ; $i++) if (!preg_match('/ du /', $match[$i]) && !preg_match('/^\D*\d\d\d\d\D*$/', $match[$i])) {
    317317                $match[$i] = preg_replace('/[, ]+et[, ]+/', ', ', $match[$i]);
    318318                $matche = explode(';', $match[$i]);
Note: See TracChangeset for help on using the changeset viewer.