From 39dc23398ecdf6a4ac5c6ff3d76dcd25850787c3 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sun, 25 Sep 2016 01:34:52 -0400 Subject: [PATCH] Use global search for filtering special chars in lbry.formatName() --- js/lbry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lbry.js b/js/lbry.js index cf3e88770..d1216b6f1 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -296,7 +296,7 @@ lbry.formatCredits = function(amount, precision) lbry.formatName = function(name) { // Converts LBRY name to standard format (all lower case, no special characters) - return name.toLowerCase().replace(/[^a-z0-9\-]/, ''); + return name.toLowerCase().replace(/[^a-z0-9\-]/g, ''); } lbry.loadJs = function(src, type, onload)