Skip to content

Commit

Permalink
hashes may include dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
astro authored and milianw committed Jan 15, 2010
1 parent 9a87abc commit d7c0f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion springer_download.py
Expand Up @@ -42,7 +42,7 @@ def main(argv):

if link == "":
error("You have to define a link.")
if not re.match("https?://(www\.)?springerlink.(com|de)/content/[a-z0-9]+(/\?[^/]*)?$", link):
if not re.match("https?://(www\.)?springerlink.(com|de)/content/[a-z0-9\-]+(/\?[^/]*)?$", link):
error("Bad link given. See LINK below.")

# remove all arguments from link
Expand Down

0 comments on commit d7c0f8a

Please sign in to comment.