Skip to content

Commit a4f6343

Browse files
committed
test: add escape bracket.
Signed-off-by: ytetsuro <phper.0o0@gmail.com>
1 parent d471672 commit a4f6343

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Validation/ValidationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ public function testSplitRegex()
550550
{
551551
$method = $this->getPrivateMethodInvoker($this->validation, 'splitRules');
552552

553-
$result = $method('required|regex_match[/^[0-9]{4}[\-\.\/][0-9]{2}[\-\.\/][0-9]{2}/]|max_length[10]');
553+
$result = $method('required|regex_match[/^[0-9]{4}[\-\.\[\/][0-9]{2}[\-\.\[\/][0-9]{2}/]|max_length[10]');
554554

555-
$this->assertEquals('regex_match[/^[0-9]{4}[\-\.\/][0-9]{2}[\-\.\/][0-9]{2}/]', $result[1]);
555+
$this->assertEquals('regex_match[/^[0-9]{4}[\-\.\[\/][0-9]{2}[\-\.\[\/][0-9]{2}/]', $result[1]);
556556
}
557557
}

0 commit comments

Comments
 (0)