]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
eit: Allow empty match subexpressions (#4787)
authorJim Hague <jim.hague@acm.org>
Tue, 12 Dec 2017 21:08:29 +0000 (21:08 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 13 Dec 2017 17:02:13 +0000 (18:02 +0100)
commit3b232b66e02fc46f1e7e97efb5ef48c6968cf779
tree906fda77f7953144a9f63b9c99b9548aa7acf094
parentc2bf962a362d102523553b248ca8da7fa27ed496
eit: Allow empty match subexpressions (#4787)

If a scrape regex includes a subexpression matching the null string (),
this match is treated as if the regex did not match.
Amend this to return an empty string as the match; this is plainly what
the regex author wanted.

As an example of why this might be wanted, consider the UK Freeview
extraction of a subtitle from the summary. A user might wish to specify
the subtitle is left blank if not obvious  subtitle is present in the
summary.

Issue: #4787.
src/epggrab/module/eitpatternlist.c