summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-08-21 19:55:35 +0100
committerNick White <git@njw.me.uk>2012-08-21 19:55:35 +0100
commit5d0c097e692d6685269150167bc757866033e1f3 (patch)
tree25a49f83f923c5666e02b61baae22174498346d6
parent2af30672cb390794f9b9ea146401dbe1c5e576aa (diff)
Improve amazon URL detection code in getxbookgui
-rwxr-xr-xgetxbookgui.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/getxbookgui.tcl b/getxbookgui.tcl
index eddefd9..d980c62 100755
--- a/getxbookgui.tcl
+++ b/getxbookgui.tcl
@@ -5,7 +5,7 @@ package require Tk
set cmds {{getgbook "Google Book ID / URL" "Google\nBook Preview" \
"http*://books.google.*/*" {[&?]id=([^&]*)}} \
{getabook "ISBN 10 / URL" "Amazon Look\nInside The Book" \
- "http*://*amazon*/*" {/([0-9]{10})/}} \
+ "http*://*amazon*/*" {/([0-9A-Z]{10})/}} \
{getbnbook "ISBN 13" "Barnes & Noble\nBook Viewer" \
"http*://www.barnesandnoble.com/*" ""}}
set cmdselected 0