Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support escaping commas in extra flags #443

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

petertrr
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #443 (5a2dc87) into main (c3fce0e) will increase coverage by 0.38%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #443      +/-   ##
============================================
+ Coverage     46.61%   47.00%   +0.38%     
  Complexity      150      150              
============================================
  Files            53       53              
  Lines          1772     1785      +13     
  Branches        331      332       +1     
============================================
+ Hits            826      839      +13     
  Misses          814      814              
  Partials        132      132              
Flag Coverage Δ
unittests 47.00% <100.00%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...aveourtool/save/core/plugin/ExtraFlagsExtractor.kt 83.33% <100.00%> (+6.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -29,7 +29,8 @@ class ExtraFlagsExtractor(private val generalConfig: GeneralConfig,
* @return [ExtraFlags] or null if no match occurred
*/
internal fun extractExtraFlagsFrom(line: String) = line
.split(",", ", ")
.splitByNonEscaped(',')
.map { it.replace("\\,", ",") }
Copy link
Member

@orchestr7 orchestr7 Aug 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case with escaping of a single slash won't work here:
aaa\\,bbb\\, -> usually it is converted to aaa\,bbb\,

@petertrr petertrr enabled auto-merge (squash) August 30, 2022 12:34
@petertrr petertrr merged commit 6c7c3d8 into main Aug 30, 2022
@petertrr petertrr deleted the bugfix/escape-commas-in-runcmd branch August 30, 2022 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants