Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/demos/utils/visual-tests/matrix-test-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ function shouldRunTestExplicitlyInternal(framework, product, demo) {
}

function patternGroupFromValues(product, demo, framework) {
const wrap = (x) => RegExp(x || '.*', 'i');
const escapeRegExp = (string) => string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
const wrap = (x) => RegExp(x ? escapeRegExp(x) : '.*', 'i');
return {
product: wrap(product),
demo: wrap(demo),
Expand Down
Loading