Tighten page name regex to not allow carriage returns or line feeds
parent
a35dd1d806
commit
fb82474be0
|
@ -44,7 +44,7 @@ sub defaultconfig () { #{{{
|
|||
\| # followed by '|'
|
||||
)? # optional
|
||||
|
||||
([^\]#]+) # 2: page to link to
|
||||
([^\n\r\]#]+) # 2: page to link to
|
||||
(?:
|
||||
\# # '#', beginning of anchor
|
||||
([^\s\]]+) # 3: anchor text
|
||||
|
|
Loading…
Reference in New Issue