fix undefined count
This commit is contained in:
parent
ed80d9fa2e
commit
429ca37e55
1 changed files with 1 additions and 5 deletions
|
@ -122,11 +122,7 @@ lbryuri.parse = function(uri, requireProto = false) {
|
|||
const pathBadChars = path.match(/[^A-Za-z0-9-]/g);
|
||||
if (pathBadChars) {
|
||||
throw new Error(
|
||||
__(
|
||||
`Invalid character %s in path: %s`,
|
||||
count == 1 ? "" : "s",
|
||||
nameBadChars.join(", ")
|
||||
)
|
||||
__(`Invalid character in path: %s`, nameBadChars.join(", "))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue