mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
validate color
This commit is contained in:
1 parent
b93c7cd261
commit
81a6a48d70
3 files changed
+11
-9
No files matched your search
@@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Templates
|
||||
COLOR_REGEXP = /\A(#(?:[0-9a-f]{3}|[0-9a-f]{6})|[a-z]+)\z/i
|
||||
|
||||
EXPIRATION_DURATIONS = {
|
||||
one_day: 1.day,
|
||||
two_days: 2.days,
|
||||
|
||||
Reference in new issue
Block a user