Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
False WARNINGs in lang prefix check #5860
We use a CI/CD to deliver our Hugo site which also checks if there are no warnings in the output of
Please consider the following example where one of the languages is German (
Hugo correctly outputs a warning about the language prefix (
Hugo unfortunately still outputs the same warning since
As per f34e617 I know this warning is only active in 0.55. However, I think this might affect a few people and it might confuse people and result in ignoring warnings which is a bad habit.
A solution might be to check whether the supposed prefix is followed by a non-alphanumeric character in f34e617#diff-5129e7484246c664a01e8bb7c023fa12R384 I'd love to provide a PR but unfortunately my Go skills are virtually non-existent.
What do you think?