Update of /cvsroot/tmda/tmda/contrib
In directory sc8-pr-cvs1:/tmp/cvs-serv5772

Modified Files:
        def2html 
Log Message:
Since the regular expression in 'is_line_header' should match only the
configuration variable names, which are uppercase letters, numbers and
underscores, make the regular expression say that explicitly.


Index: def2html
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/def2html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- def2html    5 Dec 2002 18:23:50 -0000       1.2
+++ def2html    6 Dec 2002 00:01:42 -0000       1.3
@@ -57,7 +57,7 @@
     return text
 
 def looks_like_term(text):
-    if re.match(r'^\w+$', text):
+    if re.match(r'^[A-Z][A-Z0-9_]+$', text):
         return 1
     return 0
 

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to