aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/comb.js5
1 files changed, 5 insertions, 0 deletions
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 '';
+}