Development

#3300: sfYamlParser.class.php.diff

You must first sign up to be able to contribute.

Ticket #3300: sfYamlParser.class.php.diff

File sfYamlParser.class.php.diff, 0.7 kB (added by lsmith, 9 months ago)

Relax the matching rules for alias names

  • sfYamlParser.class.php

    old new  
    107107            throw new InvalidArgumentException(sprintf('In place substitution must point to a reference on line %s.', $this->currentLine)); 
    108108          } 
    109109        } 
    110         else if (isset($values['value']) && preg_match('#^&(?P<ref>\w+) *(?P<value>.*)#', $values['value'], $matches)) 
     110        else if (isset($values['value']) && preg_match('#^&(?P<ref>\.+) *(?P<value>.*)#', $values['value'], $matches)) 
    111111        { 
    112112          $isRef = $matches['ref']; 
    113113          $values['value'] = $matches['value'];