Skip to content

Commit

Permalink
fix rep
Browse files Browse the repository at this point in the history
  • Loading branch information
nissy committed Jun 28, 2019
1 parent e151fe6 commit 4e77ea7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ glossary:
title: S
GlossList:
GlossEntry:
ID: "$ID"
SortAs: "$ID"
ID: "${ID}"
SortAs: "${ID}"
GlossTerm: "Standard Generalized Markup Language"
Acronym: "$ID"
Acronym: "${ID}"
Abbrev: "ISO 8879:1986"
GlossDef:
para: "A meta-markup language, used to create markup languages such as DocBook."
Expand Down Expand Up @@ -97,29 +97,29 @@ type (

func main() {
data := ABC{
A: "$A",
A: "${A}",
B: []string{
"$B",
"$B",
"$B",
"${B}",
"${B}",
"${B}",
},
D: &D{
F: &F{
I: []*I{
{
J: "$J",
J: "${J}",
},
{
J: "$J",
J: "${J}",
K: []map[int]string{
{
1: "$K",
2: "$K",
1: "${K}",
2: "${K}",
},
},
L: []string{
"$L",
"$L",
"${L}",
"${L}",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion envexpand.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type (
)

var (
rep = regexp.MustCompile(`\$[a-zA-Z_]{1,}[a-zA-Z0-9_]{0,}|\$\{[a-zA-Z_]{1,}[a-zA-Z0-9_]{0,}\}`)
rep = regexp.MustCompile(`\$\{[a-zA-Z_]{1,}[a-zA-Z0-9_]{0,}\}`)
)

func CompileRegexp(s string) {
Expand Down

0 comments on commit 4e77ea7

Please sign in to comment.