Skip to content

Commit 6fff65d

Browse files
committed
fix: correct regex to remove unnecessary escape before closing bracket
1 parent 5773412 commit 6fff65d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

track.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Track struct {
2020
HLSURL string // HLS transcoding URL for audio/mpeg
2121
}
2222

23-
var hydrationRe = regexp.MustCompile(`window\.__sc_hydration\s*=\s*(\[.+?\]);`)
23+
var hydrationRe = regexp.MustCompile(`window\.__sc_hydration\s*=\s*(\[.+?]);`)
2424

2525
// GetTrack fetches a SoundCloud track page and extracts metadata from the
2626
// hydration data embedded in the HTML.

0 commit comments

Comments
 (0)