diff --git a/src/common/parsing_rules.ts b/src/common/parsing_rules.ts index 7950ac47..b0da8d9a 100644 --- a/src/common/parsing_rules.ts +++ b/src/common/parsing_rules.ts @@ -52,10 +52,10 @@ export const extractSongNumber = (src: string) => { const parseNum = src.match(/(\d+)/); if (parseNum && parseNum.length > 0) { - const firstNumber = parseNum[0]; + const firstNumber = +parseNum[0]; - if (!isNaN(firstNumber) && firstNumber <= 158) { - return +firstNumber; + if (firstNumber <= 158) { + return firstNumber; } }