feat: sanitize all yaml #28

已合并
knoflook 2022-04-12 11:44:35 +00:00 将 3 次代码提交从 knoflook/lumbunglib:master 合并至 master
仅显示提交 cf8b1ff7e9 的更改 - 显示所有提交

查看文件

@ -14,7 +14,7 @@ from bs4 import BeautifulSoup
from slugify import slugify from slugify import slugify
from re import compile as re_compile from re import compile as re_compile
from re import sub from re import sub
yamlre = re_compile('[_\?:\'\[\]\{\}\#\&\*\!\|\>\`\"\%]') yamlre = re_compile('[_\'\[\]\{\}\#\&\*\!\|\>\`\"\%]')
def write_etag(feed_name, feed_data): def write_etag(feed_name, feed_data):