Skip to content

Commit fb248dd

Browse files
authored
Merge pull request #80 from bim-g/bim-g-patch-1
[FIX] match validation bugs
2 parents 72b847c + 74339a0 commit fb248dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validator/StringValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function url()
105105
public function match(string $key_to_match)
106106
{
107107
$this->isStringAndValid($key_to_match);
108-
if (isset($this->data_source[$key_to_match]) && (strlen($this->field_value) != strlen($this->data_source[$key_to_match])) && ($this->field_value != $this->data_source[$key_to_match])) {
108+
if (isset($this->data_source[$key_to_match]) && ($this->field_value != $this->data_source[$key_to_match])) {
109109
$this->messageItem
110110
->type('string.match')
111111
->message("`$this->field_name` should match `$key_to_match`")

0 commit comments

Comments
 (0)