Skip to content

Commit

Permalink
Merge pull request #66 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
More on clean up readme
  • Loading branch information
barseghyanartur committed Nov 19, 2023
2 parents 68b1293 + f0206cf commit 743ff1c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@


def clean_readme(text):
# Define the pattern to match ":emphasize-lines:" followed by digits
pattern = r":emphasize-lines: \d+"
# Replace the found patterns with an empty string
return re.sub(pattern, "", text)
# Pattern to match ":emphasize-lines:" followed by digits
emphasize_lines_pattern = r":emphasize-lines: \d+"
text = re.sub(emphasize_lines_pattern, "", text)

# Pattern to match ":name:" followed by any characters to the line end
name_lines_pattern = r":name: .*$"
text = re.sub(name_lines_pattern, "", text, flags=re.MULTILINE)

return text


version = "0.17.10"
Expand Down

0 comments on commit 743ff1c

Please sign in to comment.