diff --git a/ui/js/lbryuri.js b/ui/js/lbryuri.js index a2239293b..de22770ab 100644 --- a/ui/js/lbryuri.js +++ b/ui/js/lbryuri.js @@ -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(", ")) ); }