We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4d3c2a + 4e8cb38 commit 05e5b0eCopy full SHA for 05e5b0e
lib/bashly/templates/lib/config.sh
@@ -21,7 +21,7 @@ config_init() {
21
# Usage: result=$(config_get hello)
22
config_get() {
23
key=$1
24
- regex="^$key\s*=\s*(.+)$"
+ regex="^$key *= *(.+)$"
25
26
config_init
27
@@ -44,7 +44,7 @@ config_set() {
44
45
46
47
- regex="^($key)\s*=\s*.+$"
+ regex="^($key) *= *.+$"
48
output=""
49
found_key=""
50
@@ -71,7 +71,7 @@ config_set() {
71
config_del() {
72
73
74
- regex="^($key)\s*="
+ regex="^($key) *="
75
76
77
@@ -100,7 +100,7 @@ config_show() {
100
# done
101
#
102
config_keys() {
103
- regex="^([a-zA-Z0-9_\-]+)\s*="
+ regex="^([a-zA-Z0-9_\-]+) *="
104
105
106
0 commit comments