Skip to content

Commit

Permalink
修改正则
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 committed Sep 20, 2014
1 parent 2ab088b commit c9abc5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions getComic.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def __str__(self):
return repr(self.code)

def isLegelUrl(url):
legalUrl1 = re.compile(r'^http://ac.qq.com/Comic/[Cc]omicInfo/id/\d+$')
legalUrl2 = re.compile(r'^http://m.ac.qq.com/Comic/[Cc]omicInfo/id/\d+$')
legalUrl3 = re.compile(r'^http://ac.qq.com/\w+$')
legalUrl1 = re.compile(r'^http://ac.qq.com/Comic/[Cc]omicInfo/id/\d+/?$')
legalUrl2 = re.compile(r'^http://m.ac.qq.com/Comic/[Cc]omicInfo/id/\d+/?$')
legalUrl3 = re.compile(r'^http://ac.qq.com/\w+/?$')

if legalUrl1.match(url):
return True
Expand Down

0 comments on commit c9abc5d

Please sign in to comment.