Skip to content

Commit

Permalink
Use actual newline (instead of "\n") to split strings in yq rule
Browse files Browse the repository at this point in the history
Fixes d79f4d4
Fixes #463

This is required since versions of yq older than 4.30.3 do not parse "\n" correctly.
See mikefarah/yq#1430 and e02bb7194897edb916a6787fb8f8e5a7f432dd94
  • Loading branch information
malt3 authored and alexeagle committed Jun 23, 2023
1 parent 6393098 commit 794df71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/parse_status_file.yq
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load_str(filename) | split("\n") | .[] | select(length!=0)
load_str(filename) | split("
") | .[] | select(length!=0)
| [capture("(?P<key>[^\s]+)\s+(?P<value>.*)")]
| from_entries

0 comments on commit 794df71

Please sign in to comment.