mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:02:00 +08:00
removed commented out code
This commit is contained in:
parent
722facdb2f
commit
402d7d75da
@ -158,17 +158,4 @@ const buildTemplate = (
|
|||||||
(prevSelector, [searchValue, replacer]) => prevSelector.replace(searchValue, replacer as any),
|
(prevSelector, [searchValue, replacer]) => prevSelector.replace(searchValue, replacer as any),
|
||||||
selector
|
selector
|
||||||
);
|
);
|
||||||
// /* eslint-disable no-return-assign, no-param-reassign */
|
|
||||||
// const getTemplate = (s: string): string =>
|
|
||||||
// [
|
|
||||||
// [/(^\..+)/, 'div$1'],
|
|
||||||
// [/(^\[.+?])/, 'div$1'],
|
|
||||||
// [/([\w[\]]+)(\s*,[\w\s-[\],]+)+/, `$1`],
|
|
||||||
// [/#([\w-]+)/, ` id="$1"`],
|
|
||||||
// [/((\.[\w-]+)+)/, (_: any, c: any) => ` class="${c.split`.`.join` `.trim()}"`],
|
|
||||||
// [/(\[.+?])/g, (_: any, a: any) => ` ${a.slice(1, -1)}`],
|
|
||||||
// [/([\S]+)(.*)/, `<$1$2${inputs}${outputs}>${innerTemplate}</$1>`],
|
|
||||||
// ].map((r) => (s = (s as any).replace(...r)))[6];
|
|
||||||
// /* eslint-enable no-return-assign, no-param-reassign */
|
|
||||||
// return getTemplate(selector);
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user