fix: 修复 Base64 内容的判断

This commit is contained in:
xream
2023-12-02 16:14:11 +08:00
parent bf9210fc5a
commit c2499f6779
2 changed files with 5 additions and 2 deletions

View File

@@ -25,7 +25,10 @@ function Base64Encoded() {
];
const test = function (raw) {
return keys.some((k) => raw.indexOf(k) !== -1);
return (
!/^\w+:\/\/\w+/im.test(raw) &&
keys.some((k) => raw.indexOf(k) !== -1)
);
};
const parse = function (raw) {
raw = Base64.decode(raw);