luci-app-banip: fix URL regex in custom feed editor
- accept special chars for BASIC AUTH in URL Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
7597e9eab2
commit
ceb490df59
1 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ return view.extend({
|
|||
if (!value) {
|
||||
return true;
|
||||
}
|
||||
if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-_\?\&\+=~#]+$/)) {
|
||||
if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-\?\&\+_@%=:~#]+$/)) {
|
||||
return _('Protocol/URL format not supported');
|
||||
}
|
||||
return true;
|
||||
|
@ -218,7 +218,7 @@ return view.extend({
|
|||
if (!value) {
|
||||
return true;
|
||||
}
|
||||
if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-_\?\&\+=:~#]+$/)) {
|
||||
if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-\?\&\+_@%=:~#]+$/)) {
|
||||
return _('Protocol/URL format not supported');
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue