From 29840c8b268cc639f87cda7c75c5191b0948dcb3 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 29 Jan 2022 14:02:04 +0000 Subject: [PATCH] rm disktag length limit --- common.php | 2 +- disk/Aliyundrive.php | 2 +- disk/Googledrive.php | 2 +- disk/Onedrive.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.php b/common.php index b441153..5cc2259 100644 --- a/common.php +++ b/common.php @@ -1662,7 +1662,7 @@ output: 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; diff --git a/disk/Aliyundrive.php b/disk/Aliyundrive.php index 7fc3c49..6543f61 100644 --- a/disk/Aliyundrive.php +++ b/disk/Aliyundrive.php @@ -800,7 +800,7 @@ class Aliyundrive { 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; diff --git a/disk/Googledrive.php b/disk/Googledrive.php index bdef277..abba215 100644 --- a/disk/Googledrive.php +++ b/disk/Googledrive.php @@ -718,7 +718,7 @@ class Googledrive { 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; diff --git a/disk/Onedrive.php b/disk/Onedrive.php index 184294d..949b4ea 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -810,7 +810,7 @@ class Onedrive { 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;