grim/convey

Fix ${var} regex.
expand-list
2017-10-03, Eric Fritz
1f100c6c13ec
Parents 6144f314f439
Children ee97ff3b6550
Fix ${var} regex.
--- a/state/util.go Tue Oct 03 21:51:04 2017 -0500
+++ b/state/util.go Tue Oct 03 22:13:07 2017 -0500
@@ -22,7 +22,7 @@
)
var re1 = regexp.MustCompile("\\$[A-Za-z0-9_]+")
-var re2 = regexp.MustCompile("\\${[^}]+}")
+var re2 = regexp.MustCompile("\\${[A-Za-z0-9_]+}")
// getNames extracts all variables with the format $var or ${var} from
// the given string.