From 5d0c097e692d6685269150167bc757866033e1f3 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 21 Aug 2012 19:55:35 +0100 Subject: Improve amazon URL detection code in getxbookgui --- getxbookgui.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3