summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-04-25 20:52:25 +0200
committerMatthias Hecker <mail@apoc.cc>2020-04-25 20:52:25 +0200
commitcb192caad83164924f615cfe43123c4d24103387 (patch)
tree3b13c1507c4d84d007683d24c50cb5e70fe8db05 /data/rbot
parent40ba5f69f763c47a4cd50439cc8c9937aab80dc4 (diff)
plugin(imdb): fix title regex, closes #44
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/imdb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb
index 0f5c6024..3ca21035 100644
--- a/data/rbot/plugins/imdb.rb
+++ b/data/rbot/plugins/imdb.rb
@@ -150,7 +150,7 @@ class Imdb
debug title_date
# note that the date dash for series is a - (ndash), not a - (minus sign)
# also, the second date, if missing, is an no-break space
- pre_title, extra, date, junk = title_date.scan(/^(.*)\((.+?\s+)?(\d\d\d\d(?:–(?:\d\d\d\d| )?)?(?:\/[IV]+)?)\)\s*(.+)?$/).first
+ pre_title, extra, date, junk = title_date.scan(/^(.*)\((.+?\s+)?(\d\d\d\d(?:–(?:\d\d\d\d| )?)?(?:\/[IV]+)?)[^\)]*\)\s*(.+)?$/).first
extra.strip! if extra
pre_title.strip!
title = fix_article(pre_title)