docs(text): fix slugify() summary (#5722)

* docs(text): fix `slugify()` summary

* tweak

* fix
This commit is contained in:
Asher Gomez 2024-08-22 15:49:56 +10:00 committed by GitHub
parent 7fb685efff
commit b289deecbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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(""), "");
});