Skip to content

Commit

Permalink
[TEST] Small tweak to timestamp regex
Browse files Browse the repository at this point in the history
This whole hack will go away soon, either when ttl is removed or when I get around to fixing
the offending tests in ES core. :)
  • Loading branch information
polyfractal committed Mar 31, 2016
1 parent 66c851f commit d5e50c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Expand Up @@ -742,7 +742,7 @@ private function checkForRegex($value)
private function getTimestampRegex()
{
return <<<EOF
~
~[^"]
(?P<year>[0-9][0-9][0-9][0-9])
-(?P<month>[0-9][0-9]?)
-(?P<day>[0-9][0-9]?)
Expand All @@ -753,7 +753,7 @@ private function getTimestampRegex()
(?:\.(?P<fraction>[0-9]*))?
(?:[ \t]*(?P<tz>Z|(?P<tz_sign>[-+])(?P<tz_hour>[0-9][0-9]?)
(?::(?P<tz_minute>[0-9][0-9]))?))?)?
~x
[^"]~x
EOF;
}

Expand Down

0 comments on commit d5e50c1

Please sign in to comment.