Commit 1712f5b4 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado 💬
Browse files

Fix filename lang metadata regex

Make the lang metadata only match the two possible languages in the
Without this, filenames, even from static files, containing '-' throwed
a 'STATIC_LANG_SAVE_AS' critical error.
Now they can have '-' in the name as long as it isn't '-en' or '-br'.
parent fdc8c75c
......@@ -32,7 +32,7 @@ EXTRA_PATH_METADATA = {
# Before the dash, use to match translations. After dash assign to language.
FILENAME_METADATA = '(?P<trans_id>.*)-(?P<lang>.*)'
FILENAME_METADATA = '(?P<trans_id>.*)-(?P<lang>br|en)'
PLUGIN_PATHS = ['pelican-plugins']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment