Use global search for filtering special chars in lbry.formatName()
This commit is contained in:
parent
3b0d24d4f5
commit
39dc23398e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue