From 3986ba1df4f404967732add30bf09f0c61bc181f Mon Sep 17 00:00:00 2001 From: Artem Yunusov Date: Wed, 16 Jul 2008 22:25:36 +0500 Subject: Aggregated regexp for both backtick and double backtick. --- markdown.py | 13 ++++--------- tests/safe_mode/script_tags.html | 4 ++-- tests/safe_mode/script_tags.txt | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/markdown.py b/markdown.py index dcfe18e..5b4fa5f 100644 --- a/markdown.py +++ b/markdown.py @@ -507,8 +507,7 @@ BRK = ( r'\[(' + NOBRACKET + r')\]' ) NOIMG = r'(? <script <!-- alert("Hello world!") -</script <>`

+</script <> `

Try another way.

<script <!-- alert("Hello world!") @@ -26,4 +26,4 @@ alert("Hello world!") </script <> -

\ No newline at end of file +

diff --git a/tests/safe_mode/script_tags.txt b/tests/safe_mode/script_tags.txt index 55c60e9..44041c2 100644 --- a/tests/safe_mode/script_tags.txt +++ b/tests/safe_mode/script_tags.txt @@ -16,7 +16,7 @@ Now with some weirdness ```` ` Try another way. -- cgit v1.2.3