Skip to content

Commit

Permalink
Move re Flag, because of: Flags should be used first in the expressio…
Browse files Browse the repository at this point in the history
…n string
  • Loading branch information
jedie committed Jan 18, 2020
1 parent 1fa59d4 commit 97acbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creole/parser/creol2html_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class InlineRules(object):
# ''' % proto

# image tag
image = r'''(?P<image>
image = r'''(?i)(?P<image>
{{
(?P<image_target>.+?) \s*
(\| \s* (?P<image_text>.+?) \s*)?
}}
)(?i)'''
)'''
#--------------------------------------------------------------------------

# a macro like: <<macro>>text<</macro>>
Expand Down

1 comment on commit 97acbc4

@jedie
Copy link
Owner Author

@jedie jedie commented on 97acbc4 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image tag doesn't contain anything that must match case-insensitive. So i think (?i) can be completely removed to fix #31

Please sign in to comment.