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);
|
const pathBadChars = path.match(/[^A-Za-z0-9-]/g);
|
||||||
if (pathBadChars) {
|
if (pathBadChars) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
__(
|
__(`Invalid character in path: %s`, nameBadChars.join(", "))
|
||||||
`Invalid character %s in path: %s`,
|
|
||||||
count == 1 ? "" : "s",
|
|
||||||
nameBadChars.join(", ")
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue