Changeset 1161

Show
Ignore:
Timestamp:
11/12/08 13:58:16 (2 months ago)
Author:
laurentj
Message:

jIniFileModifier : added support of @ and : character in section names

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/utils/jIniFileModifier.class.php

    r1091 r1161  
    7474                $this->content[$currentSection][]=array(self::TK_COMMENT, $m[1]); 
    7575 
    76             }else if(preg_match('/^(\s*\[([a-z0-9_.-]+)\]\s*)/i', $line, $m)) { 
     76            }else if(preg_match('/^(\s*\[([a-z0-9_.-@:]+)\]\s*)/i', $line, $m)) { 
    7777                $currentSection = $m[2]; 
    7878                $this->content[$currentSection]=array( 
  • trunk/testapp/modules/jelix_tests/tests/utils.jinifilemodifier.html_cli.php

    r1091 r1161  
    9393truc=machin 
    9494 
    95 [othersection] 
     95[ot:her@section] 
    9696truc=machin2 
    9797 
     
    110110                array(jIniFileModifier::TK_WS, ""), 
    111111            ), 
    112             'othersection'=>array( 
    113                 array(jIniFileModifier::TK_SECTION, "[othersection]"), 
     112            'ot:her@section'=>array( 
     113                array(jIniFileModifier::TK_SECTION, "[ot:her@section]"), 
    114114                array(jIniFileModifier::TK_VALUE, 'truc','machin2'), 
    115115                array(jIniFileModifier::TK_WS, ""), 
Download in other formats: Unified Diff Zip Archive