From 1132472fb8d4d8232e531b4563801df0692d6839 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 27 Dec 2019 00:13:27 -0500 Subject: added unmask to comb --- utils/comb.js | 5 +++++ 1 file changed, 5 insertions(+) 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; +} -- cgit