mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: cleanTitle removing feat and ft from words instead of whole words
This commit is contained in:
parent
9f9244062a
commit
86123456f2
@ -53,9 +53,9 @@ abstract class ServiceUtils {
|
|||||||
|
|
||||||
return "$title ${artists.map((e) => e.replaceAll(",", " ")).join(", ")}"
|
return "$title ${artists.map((e) => e.replaceAll(",", " ")).join(", ")}"
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replaceAll(RegExp(" *\\[[^\\]]*]"), '')
|
.replaceAll(RegExp(r"\s*\[[^\]]*]"), ' ')
|
||||||
.replaceAll(RegExp("feat.|ft."), '')
|
.replaceAll(RegExp(r"\sfeat\.|\sft\."), ' ')
|
||||||
.replaceAll(RegExp("\\s+"), ' ')
|
.replaceAll(RegExp(r"\s+"), ' ')
|
||||||
.trim();
|
.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user