From 92dc8b027770f0b9056c6b489f2e7e869e90cc9a Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 12 Sep 2017 21:24:50 +0200 Subject: [PATCH] Fix GUID regex --- lib/diaspora_federation/validators/rules/guid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/diaspora_federation/validators/rules/guid.rb b/lib/diaspora_federation/validators/rules/guid.rb index 88ab8e6..3e30874 100644 --- a/lib/diaspora_federation/validators/rules/guid.rb +++ b/lib/diaspora_federation/validators/rules/guid.rb @@ -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