summaryrefslogtreecommitdiff
path: root/add_extbase_property.sh
diff options
context:
space:
mode:
Diffstat (limited to 'add_extbase_property.sh')
-rwxr-xr-xadd_extbase_property.sh4
1 files 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=(