We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334a000 commit 716dfa1Copy full SHA for 716dfa1
1 file changed
parts.go
@@ -60,7 +60,7 @@ func (pl partList) generateRegularExpressionAndNameList(options options) (string
60
result.WriteString("(?i)")
61
}
62
63
- result.WriteByte('^')
+ result.WriteString("\\A(?:")
64
65
for _, p := range pl {
66
if p.pType == partFixedText {
@@ -165,7 +165,7 @@ func (pl partList) generateRegularExpressionAndNameList(options options) (string
165
166
167
168
- result.WriteByte('$')
+ result.WriteString(")\\z")
169
170
return result.String(), nameList, nil
171
0 commit comments