mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
add double white space replacing
This commit is contained in:
parent
fc3549b1a7
commit
27303294a3
@ -7,7 +7,7 @@ import { Preview } from '../components/preview/preview';
|
||||
|
||||
export type Item = StoriesHash[keyof StoriesHash];
|
||||
|
||||
const splitTitleAddExtraSpace = (input: string) => input.split('/').join(' / ');
|
||||
const splitTitleAddExtraSpace = (input: string) => input.split('/').join(' / ').replace(/\s\s/, ' ');
|
||||
|
||||
const getDescription = (item: Item) => {
|
||||
if (isRoot(item)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user