Skip to content
Permalink
Browse files

Add fix for tab issue YAML

  • Loading branch information...
Nathan Macnamara
Nathan Macnamara committed Apr 21, 2014
1 parent 719fd9e commit 0dcf9490a693e65b2f1e79c63288eaa5a71736fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Nathanmac/Parser/Parser.php
@@ -73,7 +73,7 @@ public function querystr($string) {
public function yaml($string) {
if ($string) {
try {
return Yaml::parse($string);
return Yaml::parse(trim(preg_replace('/\t+/', '', $string)));
} catch (Exception $ex) {
throw new ParserException('Failed To Parse YAML');
}

0 comments on commit 0dcf949

Please sign in to comment.
You can’t perform that action at this time.