git ssb

0+

Grey the earthling / scuttleblog



Commit 7c646de89922ee69de7009071971ee565c9785b4

Split post titles on square brackets too

Try to handle more cases where users are being sociable
right at the start of a post.
Greg K Nicholson committed on 10/15/2017, 12:42:09 PM
Parent: 00dfdb66a5707afe7c1a97bf60b1cd41808c0829

Files changed

scuttleblog.pychanged mode from 100755 to 100644
scuttleblog.pyView
@@ -50,9 +50,9 @@
5050
5151 def define_post_title(text):
5252 title = text.strip().splitlines()[0]
5353 title = re.sub('^\W+', '', title)
54- titleparts = re.split('([.?!])', title)
54 + titleparts = re.split('([.?!\[\])', title)
5555 return titleparts[0] + titleparts[1] if len(titleparts) > 1 else titleparts[0]
5656
5757 def build_post_structure(p):
5858 post = {}

Built with git-ssb-web