# HG changeset patch # User neko259 # Date 2014-01-06 21:28:07 # Node ID 0f5da5580c0689925a4f6617a9f035d585e4781e # Parent 9da0f7edcdedf08832b5fa3fcb90d9915c3c0298 Fixed using multiple spoilers in one post diff --git a/boards/mdx_neboard.py b/boards/mdx_neboard.py --- a/boards/mdx_neboard.py +++ b/boards/mdx_neboard.py @@ -10,7 +10,7 @@ import boards AUTOLINK_PATTERN = r'(https?://\S+)' QUOTE_PATTERN = r'^(?)(>[^>].+)$' REFLINK_PATTERN = r'((>>)(\d+))' -SPOILER_PATTERN = r'%%(.+)%%' +SPOILER_PATTERN = r'%%([^(%%)]+)%%' COMMENT_PATTERN = r'^(//(.+))' STRIKETHROUGH_PATTERN = r'~(.+)~'