Skip to content

Commit

Permalink
feat: allow uppercase in author again
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Feb 4, 2024
1 parent f6a63cc commit 8051abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/js/ui/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export const slug = (input: string): string =>
* Authorify a string. An author only contains lowercase letters, numbers and the dash character.
* @param input The string to nameify
*/
export const author = slug;
export const author = (input: string): string => input.replace(/[^a-zA-Z0-9\-]/g, '').replace(/-+/g, '-');

0 comments on commit 8051abf

Please sign in to comment.