Skip to content

Commit 77b01f6

Browse files
committed
Update source links
1 parent f724c4e commit 77b01f6

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/content/docs/api/strings.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: String decoders for validating and parsing string values.
55

66
## string
77

8-
<DecoderSig name="string" type="string" source="strings.ts#L20-L25" />
8+
<DecoderSig name="string" type="string" source="strings.ts#L21-L26" />
99

1010
Accepts and returns strings.
1111

@@ -18,7 +18,7 @@ Accepts and returns strings.
1818

1919
## nonEmptyString
2020

21-
<DecoderSig name="nonEmptyString" type="string" source="strings.ts#L27-L30" />
21+
<DecoderSig name="nonEmptyString" type="string" source="strings.ts#L28-L31" />
2222

2323
Like [`string`][], but will reject the empty string or strings containing only whitespace.
2424

@@ -35,7 +35,7 @@ Like [`string`][], but will reject the empty string or strings containing only w
3535
name="regex"
3636
params="pattern: RegExp, message: string"
3737
type="string"
38-
source="strings.ts#L32-L37"
38+
source="strings.ts#L33-L38"
3939
/>
4040

4141
Accepts and returns strings that match the given regular expression.
@@ -53,7 +53,7 @@ Accepts and returns strings that match the given regular expression.
5353
name="startsWith"
5454
params="prefix: P"
5555
type="`${P}${string}`"
56-
source="strings.ts#L39-L47"
56+
source="strings.ts#L40-L48"
5757
/>
5858

5959
<Since version="2.5" />
@@ -73,7 +73,7 @@ Accepts and returns strings that start with the given prefix.
7373
name="endsWith"
7474
params="suffix: S"
7575
type="`${string}${S}`"
76-
source="strings.ts#L49-L57"
76+
source="strings.ts#L50-L58"
7777
/>
7878

7979
<Since version="2.5" />
@@ -89,7 +89,7 @@ Accepts and returns strings that end with the given suffix.
8989

9090
## decimal
9191

92-
<DecoderSig name="decimal" type="string" source="strings.ts#L140-L144" />
92+
<DecoderSig name="decimal" type="string" source="strings.ts#L139-L143" />
9393

9494
Accepts and returns strings with decimal digits only (base-10). To convert these to
9595
numbers, use the [`numeric`][] decoder.
@@ -103,7 +103,7 @@ numbers, use the [`numeric`][] decoder.
103103

104104
## hexadecimal
105105

106-
<DecoderSig name="hexadecimal" type="string" source="strings.ts#L146-L152" />
106+
<DecoderSig name="hexadecimal" type="string" source="strings.ts#L145-L151" />
107107

108108
Accepts and returns strings with hexadecimal digits only (base-16).
109109

@@ -116,7 +116,7 @@ Accepts and returns strings with hexadecimal digits only (base-16).
116116

117117
## numeric
118118

119-
<DecoderSig name="numeric" type="number" source="strings.ts#L154-L159" />
119+
<DecoderSig name="numeric" type="number" source="strings.ts#L153-L158" />
120120

121121
Accepts valid numerical strings (in base-10) and returns them as a number. To only accept
122122
numerical strings and keep them as string values, use the [`decimal`][] decoder.
@@ -130,7 +130,7 @@ numerical strings and keep them as string values, use the [`decimal`][] decoder.
130130

131131
## email
132132

133-
<DecoderSig name="email" type="string" source="strings.ts#L59-L67" />
133+
<DecoderSig name="email" type="string" source="strings.ts#L60-L68" />
134134

135135
Accepts and returns strings that are syntactically valid email addresses. (This will not
136136
mean that the email address actually exist.)
@@ -144,7 +144,7 @@ mean that the email address actually exist.)
144144

145145
## urlString
146146

147-
<DecoderSig name="urlString" type="string" source="strings.ts#L69-L75" />
147+
<DecoderSig name="urlString" type="string" source="strings.ts#L70-L73" />
148148

149149
<Since version="2.9" />
150150

@@ -165,7 +165,7 @@ Accepts strings that are valid URLs, returns the value as a string.
165165

166166
## url
167167

168-
<DecoderSig name="url" type="URL" source="strings.ts#L77-L83" />
168+
<DecoderSig name="url" type="URL" source="strings.ts#L75-L82" />
169169

170170
Accepts either URL strings or URL instances, returns the value as a URL instance.
171171

@@ -184,7 +184,7 @@ Accepts either URL strings or URL instances, returns the value as a URL instance
184184

185185
## httpsUrl
186186

187-
<DecoderSig name="httpsUrl" type="URL" source="strings.ts#L85-L92" />
187+
<DecoderSig name="httpsUrl" type="URL" source="strings.ts#L84-L91" />
188188

189189
Accepts URL strings and URL instances, but only HTTPS ones. Returns the value as a URL
190190
instance.
@@ -214,7 +214,7 @@ const gitUrl: Decoder<URL> = url.refine(
214214

215215
## identifier
216216

217-
<DecoderSig name="identifier" type="string" source="strings.ts#L94-L101" />
217+
<DecoderSig name="identifier" type="string" source="strings.ts#L93-L100" />
218218

219219
<Since version="2.4" />
220220

@@ -242,7 +242,7 @@ Accepts and returns strings that are valid identifiers in most programming langu
242242
name="nanoid"
243243
params="options?: SizeOptions"
244244
type="string"
245-
source="strings.ts#L103-L110"
245+
source="strings.ts#L102-L109"
246246
/>
247247

248248
<Since version="2.4" />
@@ -266,7 +266,7 @@ instead.
266266

267267
## uuid
268268

269-
<DecoderSig name="uuid" type="string" source="strings.ts#L112-L120" />
269+
<DecoderSig name="uuid" type="string" source="strings.ts#L111-L119" />
270270

271271
Accepts strings that are valid
272272
[UUIDs](https://en.wikipedia.org/wiki/universally_unique_identifier) (universally unique
@@ -286,7 +286,7 @@ identifier).
286286

287287
## uuidv1
288288

289-
<DecoderSig name="uuidv1" type="string" source="strings.ts#L122-L129" />
289+
<DecoderSig name="uuidv1" type="string" source="strings.ts#L121-L128" />
290290

291291
Like [`uuid`][], but only accepts
292292
[UUIDv1](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_%28date-time_and_MAC_address%29)
@@ -304,7 +304,7 @@ strings.
304304

305305
## uuidv4
306306

307-
<DecoderSig name="uuidv4" type="string" source="strings.ts#L131-L138" />
307+
<DecoderSig name="uuidv4" type="string" source="strings.ts#L130-L137" />
308308

309309
Like [`uuid`][], but only accepts
310310
[UUIDv4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_%28random%29)

0 commit comments

Comments
 (0)