aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 00:13:27 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:57:57 -0500
commit1132472fb8d4d8232e531b4563801df0692d6839 (patch)
treea75b5a5130f9a3b324a5649ae093b68e6e7ac1cf
parent73ba5656bd27f4fb40ef59b8a94f69c4af6b8b8a (diff)
added unmask to comb
-rw-r--r--utils/comb.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/comb.js b/utils/comb.js
index 607343a..8d53d68 100644
--- a/utils/comb.js
+++ b/utils/comb.js
@@ -15,3 +15,8 @@ exports.mask = function(char1, char2){ // Meant for hiding text (if char1 is val
if (char1 == '') return char2;
else return '';
}
+
+exports.unmask = function(char1, char2){ // Opposite of .mask: shows char2 only if char1 is valid
+ if (char1 == '') return '';
+ else return char2;
+}