[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/source/linc linc.py
From: |
Pavel Kharitonov |
Subject: |
www/server/source/linc linc.py |
Date: |
Thu, 07 Feb 2013 05:13:54 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Pavel Kharitonov <ineiev> 13/02/07 05:13:54
Modified files:
server/source/linc: linc.py
Log message:
Don't check for "irc://" links.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.8&r2=1.9
Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- linc.py 1 Feb 2013 14:26:48 -0000 1.8
+++ linc.py 7 Feb 2013 05:13:54 -0000 1.9
@@ -20,7 +20,7 @@
# defines
-LINC_VERSION = 'LINC 0.4'
+LINC_VERSION = 'LINC 0.5'
COPYRIGHT= \
'Copyright (C) 2011-2012 Waclaw Jacek\n\
Copyright (C) 2013 Free Software Foundation, Inc.\n\
@@ -95,7 +95,8 @@
HTTP_LINK_REGEXP = \
'http://(?P<hostname>[^/:]+)(:(?P<port>[0-9]+))?(?P<resource>/[^#]*)?'
HTTP_NEW_LOCATION_HEADER = '^Location: (?P<new_location>.+)$'
-LINK_REGEXP = '<a( .+?)? href="(?P<link>[^m].+?)"( .+?)?>'
+# Links like href="mailto:..." and href="irc:..." are excluded.
+LINK_REGEXP = '<a( .+?)? href="(?P<link>[^mi].+?)"( .+?)?>'
TRANSLATION_REGEXP = '\.(?P<langcode>[a-z]{2}|[a-z]{2}-[a-z]{2})\.[^.]+$'
VERBOSE = 0