diff options
Diffstat (limited to 'core/helpers/item.php')
-rw-r--r-- | core/helpers/item.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/helpers/item.php b/core/helpers/item.php index bd54f2b1..8ff09535 100644 --- a/core/helpers/item.php +++ b/core/helpers/item.php @@ -78,4 +78,10 @@ class item_Core { $input->add_error("no_slashes", 1); } } + + static function validate_no_trailing_period($input) { + if (rtrim($input->value, ".") !== $input->value) { + $input->add_error("no_trailing_period", 1); + } + } }
\ No newline at end of file |