From afc850948c50e788eea23d6553c86c35ee00ba53 Mon Sep 17 00:00:00 2001 From: foamzou Date: Tue, 21 Jan 2025 19:05:20 +0800 Subject: [PATCH] fix: remove bad string.replaceAll --- backend/src/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/src/index.js b/backend/src/index.js index 783d16a..0b6b51c 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -1,8 +1,3 @@ -// NeteaseCloudMusicApi 有不兼容的代码。晚点提 PR 改下,这里先 hack -String.prototype.replaceAll = function (f, r) { - return this.replace(new RegExp(f, 'g'), r); -}; - const path = require('path'); const logger = require('consola'); const cors = require('cors');