Skip to content

Commit

Permalink
tweak: do not echo back value
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Mar 5, 2023
1 parent f731810 commit c5751b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rule/Pattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function isValid(
}

public function getHint(Element $element, string $value):string {
$hint = "This field's value ($value) does not match the required pattern";
$hint = "This field does not match the required pattern";

if($title = $element->getAttribute("title")) {
$hint .= ": $title";
Expand Down

0 comments on commit c5751b4

Please sign in to comment.