Skip to content
Browse files

[Yaml] made a small optimization

  • Loading branch information...
1 parent 53532d0 commit 8490b8b9a5de3fe90d1db26391c11ee9a962813d @fabpot fabpot committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Parser.php
View
2 Parser.php
@@ -66,7 +66,7 @@ public function parse($value)
}
// tab?
- if (preg_match('#^\t+#', $this->currentLine)) {
+ if ("\t" === $this->currentLine[0]) {
throw new ParseException('A YAML file cannot contain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
}

0 comments on commit 8490b8b

Please sign in to comment.
Something went wrong with that request. Please try again.