Skip to content

Commit

Permalink
add double white space replacing
Browse files Browse the repository at this point in the history
  • Loading branch information
César Souza Liedke committed Sep 28, 2020
1 parent fc3549b commit 2730329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/src/containers/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2730329

Please sign in to comment.