Browse Source

Fix for changed list of allowed characters in tag name

pull/839/head
Reinhard Müller 6 months ago
parent
commit
95e01d5d41
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      news/legal-news.sources
  2. 1
    1
      tools/update_xmllists.sh

+ 2
- 2
news/legal-news.sources View File

@@ -1,2 +1,2 @@
news/*/news-*:[legal-news]
news/*/.news-*:[legal-news]
news/*/news-*:[legal news]
news/*/.news-*:[legal news]

+ 1
- 1
tools/update_xmllists.sh View File

@@ -175,7 +175,7 @@ for source_file in $(find * -name '*.sources' | sort); do
tag=$(echo "${line}" | sed -rn 's/.*:\[(.*)\]$/\1/p')

# Change to lowercase and remove invalid characters
tag=$(echo "${tag,,}" | tr -d ' +-/:_')
tag=$(echo "${tag,,}" | tr ' ' '_' | tr -d '/:')

# We append || true so the script doesn't fail if grep finds nothing at all
if [ -n "${tag}" ]; then

Loading…
Cancel
Save