mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +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];
|
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) => {
|
const getDescription = (item: Item) => {
|
||||||
if (isRoot(item)) {
|
if (isRoot(item)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user