Bug #4787
eit: scraper regex do not allow null string () patterns or matches of only space characters
Start date:
2017-12-12
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3-776~g8daa5085f
Affected Versions:
Description
Currently an EIT scraper regex which matches a null string (i.e. has () in the pattern) is treated as not matching; matching empty strings is explicitly considered to not be a valid match; putting it another way, the regex author is considered to have made a mistake.
I have a use case for a null string match. I'm playing with my own UK Freeview scraping patterns, and (because I don't like repeated text on my main Kodi UI) I want to leave the subtitle blank if I can't extract some obvious subtitle from the summary. So I'd like to end with a regex "()" to match anything this far unmatched and set the subtitle blank.