Fix GUID regex

This commit is contained in:
Benjamin Neff 2017-09-12 21:24:50 +02:00
parent 0b07b36017
commit 92dc8b0277
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -9,7 +9,7 @@ module Validation
# Special chars aren't allowed at the end.
class Guid
# Allowed chars to validate a GUID with a regex
VALID_CHARS = "[0-9A-Za-z\\-_@.:]{15,254}[0-9a-z]".freeze
VALID_CHARS = "[0-9A-Za-z\\-_@.:]{15,254}[0-9A-Za-z]".freeze
# The error key for this rule
# @return [Symbol] error key