Use global search for filtering special chars in lbry.formatName()

This commit is contained in:
Alex Liebowitz 2016-09-25 01:34:52 -04:00
parent 3b0d24d4f5
commit 39dc23398e

View file

@ -296,7 +296,7 @@ lbry.formatCredits = function(amount, precision)
lbry.formatName = function(name) { lbry.formatName = function(name) {
// Converts LBRY name to standard format (all lower case, no special characters) // 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) lbry.loadJs = function(src, type, onload)