summaryrefslogtreecommitdiff
path: root/src/subrip_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-04 21:57:22 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-04 21:57:22 +0100
commit42ff0632f46a8b1918f16035baa67972eb221282 (patch)
tree004228aecc35fd676d16f68b1d0e2283ef635813 /src/subrip_reader.cc
parent5be50d30b8c5360e0b197b708133165095feefc4 (diff)
Support single quotes in font color tags.v1.6.44
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 268582d..c0ef21c 100644
--- a/src/subrip_reader.cc
+++ b/src/subrip_reader.cc
@@ -261,7 +261,7 @@ SubripReader::convert_line (string t, RawSubtitle& p)
p.underline = false;
} else if (has_next(t, i, "<font") || has_next(t, i, "<Font")) {
maybe_content (p);
- boost::regex re (".*color=\"?#([[:xdigit:]]+)\"?");
+ boost::regex re (".*color=[\"\']?#([[:xdigit:]]+)[\"\']?");
boost::smatch match;
string tag;
while (i < t.size() && t[i] != '>') {