summaryrefslogtreecommitdiff
path: root/src/subrip_reader.cc
diff options
context:
space:
mode:
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]);