File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -918,12 +918,11 @@ Available functions:
918918 ` toUpper`
919919 : Changes piped input to UPPERCASE
920920
921-
922921 ` findStringSubmatch regex string`
923922 : Returns map[string]interface{} with the names of the parenthesized subexpressions, like `(?P<first>[a-z])`
924-
923+
925924 {{ $regexDBrc := "\\'mysql:\\/\\/(?P<login>[a-z0-9]+):(?P<password>[a-z0-9]+)@localhost\\/(?P<database>roundcube_[a-z0-9]+)\\';"}}
926-
925+
927926 {{ $rcConf := readFile /home/user/roundcube/config.inc.php | findStringSubmatch $regexDBrc }}
928927 {{ $UserDBrc := get $rcConf "login" }}
929928 {{ $PassDBrc := get $rcConf "password" }}
@@ -932,17 +931,14 @@ Available functions:
932931 If not exists named parenthesized subexps, returns stringfied array string :
933932
934933 {{ $regexDBrc := "\\'mysql:\\/\\/([a-z0-9]+):([a-z0-9]+)@localhost\\/(roundcube_[a-z0-9]+)\\';"}}
935-
934+
936935 {{ $rcConf := readFile /home/user/roundcube/config.inc.php | findStringSubmatch $regexDBrc }}
937936 {{ $UserDBrc := get $rcConf "1" }}
938937 {{ $PassDBrc := get $rcConf "2" }}
939938 {{ $DBrc := get $rcConf "3" }}
940939
941940 NOTE : stringfied string array begins with "1" ("0" is all the string matched)
942941
943-
944-
945-
946942!!! warning
947943
948944 gossfiles containing text/template `{{}}` controls will no longer work with `goss add/autoadd`.
You can’t perform that action at this time.
0 commit comments