mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
Tagging fixes
This commit is contained in:
parent
19f6fd3672
commit
db11803791
4 changed files with 7 additions and 2 deletions
|
@ -16,6 +16,7 @@ class Entry:
|
|||
def parse_tags(self):
|
||||
fulltext = " ".join([self.title, self.body]).lower()
|
||||
tags = re.findall(r'(?u)([{tags}]\w+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
|
||||
self.tags = tags
|
||||
return set(tags)
|
||||
|
||||
def __unicode__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue