Skip to content

Commit

Permalink
rm disktag length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 29, 2022
1 parent 9fa89ac commit 29840c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ function renametag(t) {
alert(\'Do not input ' . $envs . '\');
return false;
}
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,20})$/;
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,})$/;
if (!reg.test(t.disktag_newname.value)) {
alert(\'' . getconstStr('TagFormatAlert') . '\');
return false;
Expand Down
2 changes: 1 addition & 1 deletion disk/Aliyundrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ function notnull(t)
alert("Do not input ' . $envs . '");
return false;
}
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,20})$/;
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,})$/;
if (!reg.test(t.disktag_add.value)) {
alert(\'' . getconstStr('TagFormatAlert') . '\');
return false;
Expand Down
2 changes: 1 addition & 1 deletion disk/Googledrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ function notnull(t)
alert("Do not input ' . $envs . '");
return false;
}
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,20})$/;
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,})$/;
if (!reg.test(t.disktag_add.value)) {
alert(\'' . getconstStr('TagFormatAlert') . '\');
return false;
Expand Down
2 changes: 1 addition & 1 deletion disk/Onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ function notnull(t)
alert("Do not input \"" + t.disktag_add.value + "\" in ' . getconstStr('DiskTag') . '");
return false;
}
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,20})$/;
var reg = /^[a-zA-Z]([_a-zA-Z0-9]{1,})$/;
if (!reg.test(t.disktag_add.value)) {
alert(\'' . getconstStr('TagFormatAlert') . '\');
return false;
Expand Down

0 comments on commit 29840c8

Please sign in to comment.