Changeset 8411
- Timestamp:
- 04/11/08 09:53:10 (1 year ago)
- Files:
-
- branches/1.1/lib/yaml/sfYamlInline.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/yaml/sfYamlInline.class.php
r8286 r8411 75 75 case false !== strpos($value, "\n"): 76 76 return sprintf('"%s"', str_replace(array('"', "\n"), array('\\"', '\n'), $value)); 77 case preg_match('/[ \s \' " \: \{ \} \[ \] , ]/x', $value):77 case preg_match('/[ \s \' " \: \{ \} \[ \] , & \*]/x', $value): 78 78 return sprintf("'%s'", str_replace('\'', '\'\'', $value)); 79 79 case '' == $value:

