Skip to content

Commit

Permalink
Update settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois authored and Alexandre Amalric committed Nov 28, 2023
1 parent 4bafdd9 commit eb0c582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cmf/src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function generateDefaultViewId(viewId, componentName, componentId) {
* @return {String} MyComponent
*/
function withoutHOC(componentName) {
const match = componentName.match(/(\([^)]+\))/);
const match = componentName.match(/\(([^)]+)\)/);

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '(' and with many repetitions of '(('.
return match ? match[1] : null;
}

Expand Down

0 comments on commit eb0c582

Please sign in to comment.