Skip to content

Commit

Permalink
修复部分网易云歌曲的歌词显示问题 (#1142)
Browse files Browse the repository at this point in the history
* fix: netease lyric issue

* fix

* fix

* unify regex
  • Loading branch information
scientificworld authored Dec 29, 2023
1 parent 9dbaef1 commit 50d37c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/controller/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ angular.module('listenone').controller('PlayController', [
};
timeResult.push({
content: line
.replace(timeRegResult[0], '')
.replace(/\[(\d{2,})\:(\d{2})(?:\.(\d{1,3}))?\]/g, '')

Check failure on line 433 in js/controller/play.js

View workflow job for this annotation

GitHub Actions / build

Unnecessary escape character: \:
.replace(
/&(?:amp|lt|gt|quot|#39|apos);/g,
(match) => htmlUnescapes[match]
Expand Down

0 comments on commit 50d37c4

Please sign in to comment.