mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
remove special characters in sluggification
This commit is contained in:
parent
839ee3b6f7
commit
4f18f1bc62
|
@ -6,7 +6,7 @@ export const metadata: Metadata = {
|
||||||
title: "Dungeon Puzzler Redirect",
|
title: "Dungeon Puzzler Redirect",
|
||||||
};
|
};
|
||||||
|
|
||||||
const REDIRECT_TO = "/showcase/the-dungeon-puzzler's-lament";
|
const REDIRECT_TO = "/showcase/the-dungeon-puzzlers-lament";
|
||||||
|
|
||||||
export default function DplRedirectPage() {
|
export default function DplRedirectPage() {
|
||||||
redirect(REDIRECT_TO);
|
redirect(REDIRECT_TO);
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
export function slugify(x: string) {
|
export function slugify(x: string) {
|
||||||
return x.toLowerCase().split(" ").join("-");
|
return x
|
||||||
|
.toLowerCase()
|
||||||
|
.split(" ")
|
||||||
|
.join("-")
|
||||||
|
.replace(/[^a-zA-Z0-9\-]/, "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue