mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(text): fix slugify()
summary (#5722)
* docs(text): fix `slugify()` summary * tweak * fix
This commit is contained in:
parent
7fb685efff
commit
b289deecbe
@ -1,9 +1,9 @@
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
/**
|
||||
* **UNSTABLE**: New API, yet to be vetted.
|
||||
* Converts a string into a {@link https://en.wikipedia.org/wiki/Clean_URL#Slug | slug}.
|
||||
*
|
||||
* Converts a string into {@link https://en.wikipedia.org/wiki/Clean_URL#Slug a slug}.
|
||||
* @experimental **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts
|
||||
|
@ -28,7 +28,7 @@ Deno.test("slugify() handles dashes", () => {
|
||||
assertEquals(slugify("--Hello--World--"), "hello-world");
|
||||
});
|
||||
|
||||
Deno.test("slugify() handles empty String", () => {
|
||||
Deno.test("slugify() handles empty string", () => {
|
||||
assertEquals(slugify(""), "");
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user