Skip to content

Commit

Permalink
fix: update for jq 1.7
Browse files Browse the repository at this point in the history
jq 1.7 changed the semantics of try/catch and `//`.
additionally, jq 1.7 preserves decimal numbers in some new cases.
  • Loading branch information
bb010g committed Dec 18, 2024
1 parent 332cc87 commit c6dd250
Show file tree
Hide file tree
Showing 2 changed files with 985 additions and 985 deletions.
2 changes: 1 addition & 1 deletion series/Fawnduu/My Dragon Girlfriend/cubari.jq
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; "msi"), {})) as $tweetCaptures |
{cubariVolume: .cubariVolume, cubariChapter: .cubariChapter} + $tweet | . + {
"tweet": ($tweetCaptures.tweet? // .tweet),
"cubariChapter": ($tweetCaptures.chapterP? // $tweetCaptures.chapter? // (.cubariChapter | sub("(?:\\.(?<subchapter>\\d+))?$"; ".\((.subchapter // 0 | tonumber) + 1)"))),
"cubariChapter": ($tweetCaptures.chapterP? // $tweetCaptures.chapter? // (.cubariChapter | sub("(?:\\.(?<subchapter>\\d+))?$"; ".\(((.subchapter | tonumber?) // 0) + 1)"))),
"cubariTitle": $tweetCaptures.title?,
} | $chapterVolume[.cubariChapter]? as $volume | if $volume != null then . + {
"cubariVolume": $volume,
Expand Down
Loading

0 comments on commit c6dd250

Please sign in to comment.