_html: Refine script

This commit is contained in:
Stig-Ørjan Smelror 2024-02-01 13:41:45 +01:00
parent d74d4d5424
commit 0a28d67b81

2
qsgen2
View File

@ -878,7 +878,7 @@ def replace_qstags(match):
return qstag_dict.get(qstag, qstag) # Replace or return unchanged
# Define the regular expression pattern for QStags
pattern = r'#\w+'
pattern = r'#(?!link|image|ytvideo|updated|version)\w+'
# Replace QStags using the defined function
result = re.sub(pattern, replace_qstags, '''$content''', flags=re.MULTILINE)