[Moin-devel] CVS: MoinMoin/action SpellCheck.py,1.23,1.24

J?rgen Hermann jhermann at users.sourceforge.net
Fri May 10 04:50:03 EDT 2002


Update of /cvsroot/moin/MoinMoin/action
In directory usw-pr-cvs1:/tmp/cvs-serv31928/action

Modified Files:
	SpellCheck.py 
Log Message:
Changed definition of a word within the spellchecker


Index: SpellCheck.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/action/SpellCheck.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** SpellCheck.py	17 Apr 2002 21:04:46 -0000	1.23
--- SpellCheck.py	10 May 2002 11:49:06 -0000	1.24
***************
*** 133,142 ****
  
      # checker regex and matching substitute function
!     word_re = re.compile(r'(^|\W)([%s]?[%s]+)(?=(\W|$))' % (
          config.upperletters, config.lowerletters))
  
      def checkword(match, wordsdict=wordsdict, badwords=badwords,
              localwords=localwords, num_re=re.compile(r'^\d+$')):
!         word = match.group(2)
          if len(word) == 1:
              return ""
--- 133,142 ----
  
      # checker regex and matching substitute function
!     word_re = re.compile(r'([%s]?[%s]+)' % (
          config.upperletters, config.lowerletters))
  
      def checkword(match, wordsdict=wordsdict, badwords=badwords,
              localwords=localwords, num_re=re.compile(r'^\d+$')):
!         word = match.group(1)
          if len(word) == 1:
              return ""





More information about the Moin-devel mailing list