1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-04 22:47:25 +02:00

Better use of Python regex facilities.

This commit is contained in:
Chris Palmer
2020-12-30 09:48:46 +00:00
parent 8f2532d61b
commit 46937e403e
3 changed files with 3 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ def split_blurb(lines):
""" Split blurb on horizontal rules."""
blurbs = [""]
for line in lines.split('\n')[:-1]:
if re.match(r'\*\*\*\**',line):
if re.match(r'\*{3,}',line):
blurbs.append("")
else:
blurbs[-1] += line + '\n'