Skip to content

Commit

Permalink
fix: global replace of mdxType attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 13, 2020
1 parent 83d1825 commit e12ee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/instrument/src/misc/source-extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const adjustArgumentsLocation = (
});

export const removeMDXAttributes = (source: string): string =>
source.replace(/mdxType="[^"]*"\s?/, '');
source.replace(/mdxType="[^"]*"\s?/g, '');
export const extractSource = (
source?: string,
story?: Story,
Expand Down

0 comments on commit e12ee67

Please sign in to comment.