View Single Post
Old 08-17-2016, 06:20 PM   #1463
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,034
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
Hi Jimm
Sorry for my late reply - I'm travelling...

It's this issue:

Here's my (complete) personal.ini:

Thank you for looking into it!
If you run in debug mode, you can pick out the relevant error:

Code:
FFF: ERROR: 2016-08-17 17:08:49,210: calibre_plugins.fanficfare_plugin.fanficfare.story(588): Exception with replacement line,value:(genre=>^[mM]ention(s)? of (.*)=>\1),(Mention of Suicide - Not Severus or Harry)
The line with the problem is this:

Code:
 genre=>^[mM]ention(s)? of (.*)=>\1
...with matching "Mention of Suicide - Not Severus or Harry". Because there's no s, the first paren group is empty--that's the 'unmatched group'.

There's no need for the parens around the s because it's a single letter. You can use this instead:

Code:
 genre=>^[mM]entions? of (.*)=>\1
If, for some other pattern, you do need more than one character, you can use (?:...) "A non-capturing version of regular parentheses."

Code:
 genre=>^[mM]ention(?:s)? of (.*)=>\1
JimmXinu is online now   Reply With Quote