Permalink
Browse files

Merge pull request #12611 from aeslaughter/package-extension

Fix regex in MOOSEDocs package extension
  • Loading branch information...
permcody committed Jan 2, 2019
2 parents efba239 + 4f3bd78 commit bc1fcabbc6b4a8f388b3dd34b88869ae14adde94
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/MooseDocs/extensions/package.py
@@ -115,7 +115,7 @@ def defaultSettings():

def createToken(self, parent, info, page):
content = info['inline'] if 'inline' in info else info['block']
content = re.sub(r'__(?P<package>[A-Z]+)__', self.subFunction, content, flags=re.UNICODE)
content = re.sub(r'__(?P<package>[A-Z_]+)__', self.subFunction, content, flags=re.UNICODE)
core.Code(parent, style="max-height:{};".format(self.settings['max-height']),
language=self.settings['language'], content=content)
return parent

0 comments on commit bc1fcab

Please sign in to comment.