Development

#3300 (Yaml parsing of alias names too strict)

You must first sign up to be able to contribute.

Ticket #3300 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Yaml parsing of alias names too strict

Reported by: lsmith Assigned to: fabien
Priority: minor Milestone: 1.1.0 beta3
Component: other Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

In my recently submitted patch (#3214) I required that an alias name only be allowed to match a single word. This is too strict according to the standard: http://www.yaml.org/spec/1.1/#ns-anchor-name

However in order to make the regexp not overly complex I therefore suggest to just replace "\w" with "." in the regexp. See the attached patch.

Attachments

sfYamlParser.class.php.diff (0.7 kB) - added by lsmith on 04/09/08 09:32:12.
Relax the matching rules for alias names

Change History

04/09/08 09:32:12 changed by lsmith

  • attachment sfYamlParser.class.php.diff added.

Relax the matching rules for alias names

04/09/08 12:19:57 changed by fabien

  • milestone set to 1.1.0 beta3.

04/10/08 16:16:35 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [8386]) fixed Yaml parsing of alias names too strict (closes #3300)

04/10/08 16:34:09 changed by fabien

(In [8389]) fixed Yaml parsing of alias names too strict (closes #3300)