summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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] != '>') {