Skip to content

Commit 1f94727

Browse files
authored
Merge pull request #11 from furan917/main
Upstream v0.1.14 alignment
2 parents 373a26d + 49380a4 commit 1f94727

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.1.14](https://github.com/furan917/MageComm/compare/v0.1.13...v0.1.14) (2025-04-04)
4+
5+
6+
### Bug Fixes
7+
8+
* handle escape quotes in message strings ([fdf6bf3](https://github.com/furan917/MageComm/commit/fdf6bf33366d64a577085022f139695dd4ad8a05))
9+
310
## [0.1.13](https://github.com/furan917/MageComm/compare/v0.1.12...v0.1.13) (2024-03-19)
411

512

magerun/execute.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ func getMageRunCommand() string {
111111
}
112112

113113
func parseMagerunCommand(messageBody string) (string, []string) {
114+
//if messageBody contains \" or \' then replace with " or '
115+
escapedQuotePattern := `\\(["'])`
116+
re := regexp.MustCompile(escapedQuotePattern)
117+
messageBody = re.ReplaceAllString(messageBody, `$1`)
118+
114119
args := strings.Fields(messageBody)
115120
return args[0], args[1:]
116121
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.13 ## x-release-please-version
1+
v0.1.14 ## x-release-please-version

0 commit comments

Comments
 (0)