From 15260bc1548c90e8af23521243903cfb70586472 Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 24 Mar 2022 15:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=9C=89=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E7=9A=84=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/cloud.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/cloud.js b/module/cloud.js index 2f657f2..3ce8d5e 100644 --- a/module/cloud.js +++ b/module/cloud.js @@ -8,8 +8,8 @@ module.exports = async (query, request) => { } const filename = query.songFile.name .replace('.' + ext, '') - .replaceAll(' ', '_') - .replaceAll('.', '_') + .replace(/\s/g, '') + .replace(/\./g, '_') query.cookie.os = 'pc' query.cookie.appver = '2.9.7' const bitrate = 999000