The +, - and . characters are allowed in URI schemes

This commit is contained in:
Michael Klishin 2017-08-29 16:20:52 -06:00
parent 140d604b0e
commit 75db52b502
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ function fmt_shortened_uri(uri) {
function fmt_uri_with_credentials(uri) {
if (typeof uri == 'string') {
// mask password
var mask = /^([a-zA-Z0-9]+):\/\/(.*):(.*)@/;
var mask = /^([a-zA-Z0-9\+\-\.]+):\/\/(.*):(.*)@/;
return uri.replace(mask, "$1://$2:[redacted]@");
} else {
return UNKNOWN_REPR;