more regexp caching

This commit is contained in:
Alexey Verkhovsky 2005-02-04 19:00:28 +00:00
parent 9ea307b9d2
commit ace569ae05
4 changed files with 10 additions and 6 deletions

View file

@ -14,8 +14,8 @@ require 'chunks/chunk'
# Author: Mark Reid <mark at threewordslong dot com>
# Created: 8th June 2004
class NoWiki < Chunk::Abstract
def self.pattern() Regexp.new('<nowiki>(.*?)</nowiki>') end
NOWIKI_PATTERN = Regexp.new('<nowiki>(.*?)</nowiki>')
def self.pattern() NOWIKI_PATTERN end
attr_reader :plain_text