Fixing ___APP__

This commit is contained in:
yalh76 2021-02-28 18:56:30 +01:00 committed by Alexandre Aubin
parent 9bbc3b72ae
commit 2402a1db39

View file

@ -386,7 +386,7 @@ ynh_replace_vars () {
# Replace others variables
# List other unique (__ __) variables in $file
local uniques_vars=( $(grep -oP '__[A-Z0-9_]+?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
local uniques_vars=( $(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
# Do the replacement
local delimit=@