From 763729d0c615d8d244695780bac5bdeb0f3f2c3d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 1 Feb 2016 06:18:08 +0100 Subject: Stop using extended regexp's There's no need to use them --- add_extbase_property.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add_extbase_property.sh b/add_extbase_property.sh index 82c384d..324f555 100755 --- a/add_extbase_property.sh +++ b/add_extbase_property.sh @@ -58,8 +58,8 @@ tca_file=Configuration/TCA/${tablename}.php [[ -e "$tca_file" ]] || tca_file=Configuration/TCA/${model}.php -field=`echo $property | sed -r ':a;s/([a-z]+)([A-Z][a-z]+)/\1_\l\2/g;ta'` -uproperty=`echo $property | sed -r 's/^./\u&/'` +field=`echo $property | sed ':a;s/\([a-z]\)\([A-Z][a-z]\)/\1_\l\2/g;ta'` +uproperty=`echo $property | sed 's/^./\u&/'` declare -A type_map=( -- cgit