Skip to content
Myr

Remove "Requires 1.5" from manuals

Before adoption: this commit came in with the history the project adopted, so no landing records it.

No longer necessary now that manuals are versioned.

authored by David Tolnay · committed by David Tolnay · parent 83e8ec5 · Browse files · 2 files+16 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−16 removed

  • other:+16 added−16 removed

2 files+16 added−16 removed

modified:docs/content/3.manual/v1.5/manual.yml+8 added-8 removed
978 unmodified lines
979 - program: all980 input: '[]'981 output: ["true"]982983 - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"983 - title: "`flatten`, `flatten(depth)`"984 body: |985986 The filter `flatten` takes as input an array of nested arrays,987 and produces a flat array in which all arrays inside the original
1007 unmodified lines
19951996 evaluates to: true, true, false, false.19971998 entries:1999 - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"1999 - title: "`test(val)`, `test(regex; flags)`"2000 body: |20012002 Like `match`, but does not return match objects, only `true` or `false`2003 for whether or not the regex matches the input.
5 unmodified lines
2009 - program: '.[] | test("a b c # spaces are ignored"; "ix")'2010 input: '["xabcd", "ABC"]'2011 output: ['true', 'true']20122013 - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"2013 - title: "`match(val)`, `match(regex; flags)`"2014 body: |20152016 **match** outputs an object for each match it finds. Matches have2017 the following fields:
36 unmodified lines
2054 input: '"abc"'2055 output: [3]205620572058 - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"2058 - title: "`capture(val)`, `capture(regex; flags)`"2059 body: |20602061 Collects the named captures in a JSON object, with the name2062 of each capture as the key, and the matched string as the
3 unmodified lines
2066 - program: 'capture("(?<a>[a-z]+)-(?<n>[0-9]+)")'2067 input: '"xyzzy-14"'2068 output: ['{ "a": "xyzzy", "n": "14" }']20692070 - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"2070 - title: "`scan(regex)`, `scan(regex; flags)`"2071 body: |20722073 Emit a stream of the non-overlapping substrings of the input2074 that match the regex in accordance with the flags, if any
20 unmodified lines
2095 input: '"ab,cd, ef"'2096 output: ['"ab","cd","ef"']209720982099 - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"2099 - title: "`splits(regex)`, `splits(regex; flags)`"2100 body: |21012102 These provide the same results as their `split` counterparts,2103 but as a stream instead of an array.
2 unmodified lines
2106 - program: 'splits(", *")'2107 input: '("ab,cd", "ef, gh")'2108 output: ['"ab"', '"cd"', '"ef"', '"gh"']21092110 - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"2110 - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"2111 body: |21122113 Emit the string obtained by replacing the first match of regex in the2114 input string with `tostring`, after interpolation. `tostring` should
7 unmodified lines
2122 input: '"123abc456"'2123 output: '"ZabcZabc"'212421252126 - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"2126 - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"2127 body: |21282129 `gsub` is like `sub` but all the non-overlapping occurrences of the regex are2130 replaced by the string, after interpolation.
748 unmodified lines
modified:docs/content/3.manual/manual.yml+8 added-8 removed
1020 unmodified lines
1021 - program: all1022 input: '[]'1023 output: ["true"]10241025 - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"1025 - title: "`flatten`, `flatten(depth)`"1026 body: |10271028 The filter `flatten` takes as input an array of nested arrays,1029 and produces a flat array in which all arrays inside the original
1034 unmodified lines
20642065 evaluates to: true, true, false, false.20662067 entries:2068 - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"2068 - title: "`test(val)`, `test(regex; flags)`"2069 body: |20702071 Like `match`, but does not return match objects, only `true` or `false`2072 for whether or not the regex matches the input.
5 unmodified lines
2078 - program: '.[] | test("a b c # spaces are ignored"; "ix")'2079 input: '["xabcd", "ABC"]'2080 output: ['true', 'true']20812082 - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"2082 - title: "`match(val)`, `match(regex; flags)`"2083 body: |20842085 **match** outputs an object for each match it finds. Matches have2086 the following fields:
36 unmodified lines
2123 input: '"abc"'2124 output: [3]212521262127 - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"2127 - title: "`capture(val)`, `capture(regex; flags)`"2128 body: |21292130 Collects the named captures in a JSON object, with the name2131 of each capture as the key, and the matched string as the
3 unmodified lines
2135 - program: 'capture("(?<a>[a-z]+)-(?<n>[0-9]+)")'2136 input: '"xyzzy-14"'2137 output: ['{ "a": "xyzzy", "n": "14" }']21382139 - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"2139 - title: "`scan(regex)`, `scan(regex; flags)`"2140 body: |21412142 Emit a stream of the non-overlapping substrings of the input2143 that match the regex in accordance with the flags, if any
20 unmodified lines
2164 input: '"ab,cd, ef"'2165 output: ['"ab","cd","ef"']216621672168 - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"2168 - title: "`splits(regex)`, `splits(regex; flags)`"2169 body: |21702171 These provide the same results as their `split` counterparts,2172 but as a stream instead of an array.
2 unmodified lines
2175 - program: 'splits(", *")'2176 input: '("ab,cd", "ef, gh")'2177 output: ['"ab"', '"cd"', '"ef"', '"gh"']21782179 - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"2179 - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"2180 body: |21812182 Emit the string obtained by replacing the first match of regex in the2183 input string with `tostring`, after interpolation. `tostring` should
7 unmodified lines
2191 input: '"123abc456"'2192 output: '"ZabcZabc"'219321942195 - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"2195 - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"2196 body: |21972198 `gsub` is like `sub` but all the non-overlapping occurrences of the regex are2199 replaced by the string, after interpolation.
748 unmodified lines