mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix mask
This commit is contained in:
1 parent
bc1d5a9825
commit
3f872da435
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ module TextUtils
|
||||
end
|
||||
|
||||
def mask_value(text, unmask_size = 0)
|
||||
if unmask_size.is_a?(Numeric) && !unmask_size.zero?
|
||||
if unmask_size.is_a?(Numeric) && !unmask_size.zero? && unmask_size.abs < text.length
|
||||
if unmask_size.negative?
|
||||
[
|
||||
text.first(text.length + unmask_size).gsub(MASK_REGEXP, MASK_SYMBOL),
|
||||
|
||||
Reference in new issue
Block a user