| @@ -1,8 +1,8 @@ | ||
| 1 | -<?php | |
| 2 | -class Validation_AlphaNumeric extends Validation_RegExp { | |
| 3 | - protected $message = "Error: %element% must be alphanumeric (contain only numbers, letters, underscores, and/or hyphens)."; | |
| 4 | - | |
| 5 | - public function __construct($message = "") { | |
| 6 | - parent::__construct("/^[a-zA-Z0-9_-]+$/", $message); | |
| 7 | - } | |
| 8 | -} | |
| 1 | +<?php | |
| 2 | +class Validation_AlphaNumeric extends Validation_RegExp { | |
| 3 | + protected $message = "Error: %element% must be alphanumeric (contain only numbers, letters, underscores, and/or hyphens)."; | |
| 4 | + | |
| 5 | + public function __construct($message = "") { | |
| 6 | + parent::__construct("/^[a-zA-Z0-9_-]+$/", $message); | |
| 7 | + } | |
| 8 | +} | |