mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Edit metadata dialog: Fix pasting ISBN from clipboard not stripping garbage characters after a valid ISBN. Fixes #1604956 [paste ISBN button regular expression](https://bugs.launchpad.net/calibre/+bug/1604956)
This commit is contained in:
parent
377d75a5f4
commit
a99da9be69
@ -1523,6 +1523,8 @@ class IdentifiersEdit(QLineEdit, ToMetadataMixin):
|
|||||||
text = d.text()
|
text = d.text()
|
||||||
if not text:
|
if not text:
|
||||||
return
|
return
|
||||||
|
text = check_isbn(text)
|
||||||
|
if text:
|
||||||
vals = self.current_val
|
vals = self.current_val
|
||||||
vals['isbn'] = text
|
vals['isbn'] = text
|
||||||
self.current_val = vals
|
self.current_val = vals
|
||||||
|
Loading…
x
Reference in New Issue
Block a user