more regexp caching
This commit is contained in:
parent
9ea307b9d2
commit
ace569ae05
4 changed files with 10 additions and 6 deletions
|
@ -7,7 +7,8 @@ require 'chunks/wiki'
|
|||
# of changes to that page.
|
||||
# If the included page could not be found, a warning is displayed.
|
||||
class Include < WikiChunk::WikiLink
|
||||
def self.pattern() /^\[\[!include(.*)\]\]\s*$/i end
|
||||
INCLUDE_PATTERN = /^\[\[!include(.*)\]\]\s*$/i
|
||||
def self.pattern() INCLUDE_PATTERN end
|
||||
|
||||
attr_reader :page_name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue