Skip to content
This repository
Browse code

Word validation should return false if any non-word characters are pr…

…esent.
  • Loading branch information...
commit c1fa4994c29643280aa01e0080acaa2a9c3de3d3 1 parent c45f6dd
John P. Bloch johnpbloch authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Class/Core/Validation.php
2  Class/Core/Validation.php
@@ -315,7 +315,7 @@ protected function email_rule($data)
315 315 */
316 316 protected function word_rule($data)
317 317 {
318   - return preg_match("/\W/", $data);
  318 + return ! preg_match("/\W/", $data);
319 319 }
320 320
321 321

0 comments on commit c1fa499

Please sign in to comment.
Something went wrong with that request. Please try again.