OSDN Git Service

Fix the regular expression for uri.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 27 Aug 2006 07:30:10 +0000 (16:30 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 27 Aug 2006 07:30:10 +0000 (16:30 +0900)
src/Hage1/HTMLParserEx.py

index 143305c..57fafd8 100644 (file)
@@ -33,7 +33,7 @@ interesting_normal = re.compile("[<&h]")
 charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+);')
 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*);')
 
-urireg = re.compile("http://[a-zA-z0-9/.&=%-?]*")
+urireg = re.compile("http://[a-zA-z0-9/.&=%\-?~]*")
 
 
 class HTMLParserEx(HTMLParser.HTMLParser):