File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ func getMageRunCommand() string {
111111}
112112
113113func 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}
Original file line number Diff line number Diff line change 1- v0.1.13 ## x-release-please-version
1+ v0.1.14 ## x-release-please-version
You can’t perform that action at this time.
0 commit comments