Skip to content

Commit

Permalink
Merge pull request #1 from omaralbeik/main
Browse files Browse the repository at this point in the history
add one or more spaces before duration (omaralbeik#20)
  • Loading branch information
yucelokan authored Jan 20, 2024
2 parents a84b4d7 + 60410c3 commit f2eaf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/M3UKit/PlaylistParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public final class PlaylistParser {

// MARK: - Regex

internal let durationRegex: RegularExpression = #"#EXTINF:(\-*\d+)"#
internal let durationRegex: RegularExpression = #"#EXTINF:\s*(\-*\d+)"#
internal let nameRegex: RegularExpression = #".*,(.+?)$"#

internal let mediaKindMoviesRegex: RegularExpression = #"\/movie\/"#
Expand Down

0 comments on commit f2eaf8e

Please sign in to comment.