Skip to content

Commit

Permalink
add missing string manip
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Apr 26, 2024
1 parent 177deca commit 0684fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/code-studio/src/styleguide/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function useIsHash(): (
(labelArg: string | string[], processLabel: boolean = false): boolean => {
const rawLabels = Array.isArray(labelArg) ? labelArg : [labelArg];
const labels = processLabel
? rawLabels.map(label => label.toLocaleLowerCase())
? rawLabels.map(label => label.toLocaleLowerCase().replaceAll(' ', '-'))
: rawLabels;

return labels.some(label => hash === `#${label}` || hash === '');
Expand Down

0 comments on commit 0684fb0

Please sign in to comment.