summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-02-01 06:18:08 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-02-01 06:18:08 +0100
commit763729d0c615d8d244695780bac5bdeb0f3f2c3d (patch)
tree088b8c9180bffda78ce309a0c9c8130dcf43b029
parent1473a06bd94e4ecae85212a777172ae9c1208427 (diff)
downloadextbase-generator-cli-763729d0c615d8d244695780bac5bdeb0f3f2c3d.tar.gz
extbase-generator-cli-763729d0c615d8d244695780bac5bdeb0f3f2c3d.tar.bz2
extbase-generator-cli-763729d0c615d8d244695780bac5bdeb0f3f2c3d.zip
Stop using extended regexp's
There's no need to use them
-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=(