Skip to content

Commit

Permalink
Remove entire tag line for excerpts
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Apr 15, 2024
1 parent 0909010 commit d0d3f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GTG/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# REGEXES
# ------------------------------------------------------------------------------

TAG_REGEX = re.compile(r'^\B\@\w+(\-\w+)*\,*')
TAG_LINE_REGEX = re.compile(r'^\B\@\w+(\-\w+)*\,*.*')
SUB_REGEX = re.compile(r'\{\!.+\!\}')


Expand Down Expand Up @@ -308,7 +308,7 @@ def title(self, value) -> None:
@GObject.Property(type=str)
def excerpt(self) -> str:
# Strip tags
txt = TAG_REGEX.sub('', self.content)
txt = TAG_LINE_REGEX.sub('', self.content)

# Strip subtasks
txt = SUB_REGEX.sub('', txt)
Expand Down

0 comments on commit d0d3f18

Please sign in to comment.