Conversation
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| declare function require(moduleName: string): any; | ||
|
|
||
| const findPartialsRE = /{{#?>\s*([\w-/.]+)(?:.|\s+)*?}}/g; |
Check failure
Code scanning / CodeQL
Inefficient regular expression
| } | ||
|
|
||
| findPartials(pattern: Pattern): RegExpMatchArray | null { | ||
| const matches = pattern.template.match(findPartialsRE); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
| } | ||
|
|
||
| findPartial(partialString: string): string { | ||
| const partial = partialString.replace(findPartialsRE, '$1'); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
| } | ||
|
|
||
| findPartials(pattern: Pattern): RegExpMatchArray | null { | ||
| return pattern.template.match(this.findPartialsRE); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
Is removing |
I know what you want to imply by that, and it surely would improve our overall popularity. But I don't see any of us working on that feature and bring it to the point storybook did. Where you can simply add storybook to your workspace with one command and just include your component. |
Summary of changes:
@pattern-lab/typespackage for common types over all packagesuikit-polyfills,engine-react,development-edition-engine-react)development-edition-engine-twig-phpOpen Points