more regexp caching
This commit is contained in:
parent
9ea307b9d2
commit
ace569ae05
4 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue