formatName now using different text sanitation method
This commit is contained in:
parent
4bf4d14a24
commit
33b43477d5
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,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, spaces replaced by dashes)
|
// Converts LBRY name to standard format (all lower case, no special characters, spaces replaced by dashes)
|
||||||
name = name.replace(" ", "-");
|
name = name.replace('/\s+/g', '-');
|
||||||
name = name.toLowerCase().replace(/[^a-z0-9\-]/g, '');
|
name = name.toLowerCase().replace(/[^a-z0-9\-]/g, '');
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue