Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Regex mastaaaaah

  • Loading branch information...
commit 56cdbe944a92ca9edd4504a9ef0186077abcf586 1 parent 057bd71
@dustball dustball authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.py
View
2  main.py
@@ -108,7 +108,7 @@ def get(self, pagename, site = PB_WIKI):
pagename = 'FrontPage'
page = _request(PB_API_URL % (site, pagename), cache_ttl=604800, force=skip_cache)
# Convert quasi-camel-case to spaced words
- title = re.sub('([a-z])([A-Z])', r'\1 \2', pagename)
+ title = re.sub('([a-z]|[A-Z])([A-Z])', r'\1 \2', pagename)
if page and "name" in page:
self.response.out.write(template.render('templates/content.html', locals()))
else:
Please sign in to comment.
Something went wrong with that request. Please try again.