Skip to content

Commit d5e50c1

Browse files
committed
[TEST] Small tweak to timestamp regex
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. :)
1 parent 66c851f commit d5e50c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Elasticsearch/Tests/YamlRunnerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ private function checkForRegex($value)
742742
private function getTimestampRegex()
743743
{
744744
return <<<EOF
745-
~
745+
~[^"]
746746
(?P<year>[0-9][0-9][0-9][0-9])
747747
-(?P<month>[0-9][0-9]?)
748748
-(?P<day>[0-9][0-9]?)
@@ -753,7 +753,7 @@ private function getTimestampRegex()
753753
(?:\.(?P<fraction>[0-9]*))?
754754
(?:[ \t]*(?P<tz>Z|(?P<tz_sign>[-+])(?P<tz_hour>[0-9][0-9]?)
755755
(?::(?P<tz_minute>[0-9][0-9]))?))?)?
756-
~x
756+
[^"]~x
757757
EOF;
758758
}
759759

0 commit comments

Comments
 (0)