Skip to content

Commit

Permalink
fix(parsing): update variable type in song extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Apr 11, 2024
1 parent f5d9b5e commit b022b57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/parsing_rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit b022b57

Please sign in to comment.