Skip to content

Commit

Permalink
fix: remove bad string.replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
foamzou committed Jan 21, 2025
1 parent fc9a144 commit afc8509
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/src/index.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit afc8509

Please sign in to comment.