Skip to content

Commit

Permalink
Allow hyphens in Fandom URL validator
Browse files Browse the repository at this point in the history
Some Fandom book URL contains hyphen, for example, darren-shan.fandom.com and diary-of-a-wimpy-kid.fandom.com
  • Loading branch information
xxyzz committed Feb 27, 2022
1 parent 4979fd6 commit 9eedfd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from calibre.customize import InterfaceActionBase

VERSION = (3, 18, 2)
VERSION = (3, 18, 3)


class WordDumbDumb(InterfaceActionBase):
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self):
self.fandom_url = QLineEdit()
self.fandom_url.setText(prefs['fandom'])
self.fandom_url.setPlaceholderText('https://x.fandom.com')
fandom_re = QRegularExpression(r'https:\/\/\w+\.fandom\.com')
fandom_re = QRegularExpression(r'https:\/\/[\w-]+\.fandom\.com')
fandom_validator = QRegularExpressionValidator(fandom_re)
self.fandom_url.setValidator(fandom_validator)
fandom_hl.addWidget(self.fandom_url)
Expand Down

0 comments on commit 9eedfd3

Please sign in to comment.