X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d52c76021eaf1621b4e55a6eba1df1c0404bd7dd..0a693dbc08fd1c2c95538f627985fc03f9e3b684:/apps/search/index.py diff --git a/apps/search/index.py b/apps/search/index.py index 10069e4e4..6c7690146 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -280,7 +280,7 @@ class Index(IndexStore): return def fix_format(text): - return re.sub("/$", "", text, flags=re.M) + return re.sub("(?m)/$", "", text) def add_part(snippets, **fields): doc = self.create_book_doc(book)