From a61dd7004929d59e882974640a2cc7526b13bfd6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 30 Sep 2020 21:07:28 +0200 Subject: Allow colours in font color tags to have no surrounding quotation marks. --- src/subrip_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index beb81e1..89a5599 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -237,7 +237,7 @@ SubripReader::convert_line (string t, RawSubtitle& p) p.underline = false; } else if (boost::starts_with (tag, "font")) { maybe_content (p); - boost::regex re (".*color=\"#([[:xdigit:]]+)\""); + boost::regex re (".*color=\"?#([[:xdigit:]]+)\"?"); boost::smatch match; if (boost::regex_search (tag, match, re) && string (match[1]).size() == 6) { p.colour = Colour::from_rgb_hex (match[1]); -- cgit v1.2.3