Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Fixed regex for cut name
Browse files Browse the repository at this point in the history
  • Loading branch information
veloc1 committed Jan 24, 2020
1 parent 0f60ef9 commit a22b7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def process_cut(post):
text_before_cut = post[0:post.find('<cut>')]
elif has_named_cut:
text_before_cut = post[0:post.find('<cut ')]
m = re.search('<cut name="([a-zA-Zа-яА-Я0-9 -_,.\']*)">', post)
m = re.search('<cut name="([a-zA-Zа-яА-Я0-9 -_,.!?\']*)">', post)
print(m)
cut_name = m.group(1)

Expand Down

0 comments on commit a22b7c6

Please sign in to comment.