summaryrefslogtreecommitdiff
path: root/src/subrip_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-30 21:07:28 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-30 21:07:28 +0200
commita61dd7004929d59e882974640a2cc7526b13bfd6 (patch)
tree7aaab8a5f6ff50c57e560f3b78527369e8fe941b /src/subrip_reader.cc
parent52b2a3423147294df30a6a8c0f31c6d0412805c5 (diff)
Allow colours in font color tags to have no surrounding
quotation marks.
Diffstat (limited to 'src/subrip_reader.cc')
-rw-r--r--src/subrip_reader.cc2
1 files changed, 1 insertions, 1 deletions
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]);