From c393afc348baefddf201e10c4d4d45ccde7f29ba Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 26 Dec 2019 23:34:19 -0500 Subject: added comb.mask --- utils/comb.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/comb.js b/utils/comb.js index 9ffcb86..607343a 100644 --- a/utils/comb.js +++ b/utils/comb.js @@ -10,3 +10,8 @@ exports.sub = function(char1, char2){ if (char1 == char2) return ''; else return char1; } + +exports.mask = function(char1, char2){ // Meant for hiding text (if char1 is valid, mask char2 with null character) + if (char1 == '') return char2; + else return ''; +} -- cgit