Skip to content

Commit

Permalink
regex delimiters are now a must
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored Mar 21, 2018
1 parent fc45943 commit 1e2c28a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pho/Framework/FieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ public function probe(): void
break;

case "regex":
/*
if($constraint_val[0]!="/")
Assert::$constraint($this->value, "/".addslashes($constraint_val)."/");
else
else*/
Assert::$constraint($this->value, $constraint_val);
break;
}
Expand Down

0 comments on commit 1e2c28a

Please sign in to comment.