From b508d1028cd958f627fe651529c0e0d3d1e61291 Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:59:43 -0400 Subject: [PATCH] Fixes #12482 by pointing help links for ndjson to a non-spam source (take 2) (#12509) * Fixes #12482 * Initial PR failed due to CI issues at the time. Subsequent rebase failed, so creating new PR. # Description Use https://github.com/ndjson/ndjson-spec for help links instead of former spam site # User-Facing Changes Link changed for `help to ndjson` and `help from ndjson`. # Tests + Formatting - :green_circle: `toolkit fmt` - :green_circle: `toolkit clippy` - :green_circle: `toolkit test` - :green_circle: `toolkit test stdlib` # After Submitting --- crates/nu-std/std/formats.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-std/std/formats.nu b/crates/nu-std/std/formats.nu index 07f0e0161f..2f20e81451 100644 --- a/crates/nu-std/std/formats.nu +++ b/crates/nu-std/std/formats.nu @@ -9,7 +9,7 @@ # These functions help `open` the files with unsupported extensions such as ndjson. # -# Convert from [NDJSON](http://ndjson.org/) to structured data. +# Convert from [NDJSON](https://github.com/ndjson/ndjson-spec) to structured data. export def "from ndjson" []: string -> any { from json --objects } @@ -19,7 +19,7 @@ export def "from jsonl" []: string -> any { from json --objects } -# Convert structured data to [NDJSON](http://ndjson.org/). +# Convert structured data to [NDJSON](https://github.com/ndjson/ndjson-spec). export def "to ndjson" []: any -> string { each { to json --raw } | to text }