0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 08:14:23 +01:00

Fix regexp ranges (#9977)

This commit is contained in:
guillep2k 2020-01-25 11:49:47 -03:00 committed by zeripath
parent cb8f0c22a0
commit 1b4357a2a1

View file

@ -3,8 +3,8 @@
mv ./options/locale/locale_en-US.ini ./options/
# Make sure to only change lines that have the translation enclosed between quotes
sed -i -r -e '/^[a-zA-Z0-9_-.]+[ ]*=[ ]*".*"$/ {
s/^([a-zA-Z0-9_-.]+)[ ]*="/\1=/
sed -i -r -e '/^[a-zA-Z0-9_.-]+[ ]*=[ ]*".*"$/ {
s/^([a-zA-Z0-9_.-]+)[ ]*="/\1=/
s/\\"/"/g
s/"$//
}' ./options/locale/*.ini