diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-01-25 11:49:47 -0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-25 14:49:47 +0000 |
commit | 1b4357a2a14d9917f2c82c505c04fadf7aa75fbd (patch) | |
tree | 7607b08f9fadace5624737e4e060b918b1350b59 /scripts | |
parent | cb8f0c22a08efe3ad49bf545315043f7663e7d49 (diff) | |
download | gitea-1b4357a2a14d9917f2c82c505c04fadf7aa75fbd.tar.gz gitea-1b4357a2a14d9917f2c82c505c04fadf7aa75fbd.zip |
Fix regexp ranges (#9977)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-locales.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-locales.sh b/scripts/update-locales.sh index f73282799c..2dad93513b 100755 --- a/scripts/update-locales.sh +++ b/scripts/update-locales.sh @@ -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 |