• R/O
  • HTTP
  • SSH
  • HTTPS

karesansui: Commit

Git repository of Karesansui.


Commit MetaInfo

Revision9ceba3b4a60fd9f090adea1ebcb6629c61f8bbb2 (tree)
Time2011-03-16 15:05:52
AuthorTaizo ITO <taizo@kare...>
CommiterTaizo ITO

Log Message

Fix url validator with using regex.

Change Summary

Incremental Difference

--- a/karesansui/lib/checker.py
+++ b/karesansui/lib/checker.py
@@ -1227,7 +1227,7 @@ class Checker(object):
12271227 _file_flag = False
12281228 if check & CHECK_VALID:
12291229
1230- regex = '^(http|ftp):\/\/[\w.]+\/(\S*)'
1230+ regex = '^(http|ftp):\/\/[\w.\-]+\/(\S*)'
12311231 m = re.compile(regex).search(value)
12321232 if m:
12331233 _http_flag = True
Show on old repository browser