From b3ff6a854d2333ffce508b933962b01aee345315 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 22 Jun 2013 07:54:56 -0700 Subject: [PATCH] Allow malformed timestamps in SRT. Closes #1614. --- aegisub/src/subtitle_format_srt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/subtitle_format_srt.cpp b/aegisub/src/subtitle_format_srt.cpp index ff6d446c0..4d20343b5 100644 --- a/aegisub/src/subtitle_format_srt.cpp +++ b/aegisub/src/subtitle_format_srt.cpp @@ -360,7 +360,7 @@ void SRTSubtitleFormat::ReadFile(AssFile *target, agi::fs::path const& filename, // See parsing algorithm at // "hh:mm:ss,fff --> hh:mm:ss,fff" (e.g. "00:00:04,070 --> 00:00:10,04") - const boost::regex timestamp_regex("^([0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{1,}) --> ([0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{1,})"); + const boost::regex timestamp_regex("^([0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2},[0-9]{1,}) --> ([0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2},[0-9]{1,})"); SrtTagParser tag_parser;