We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d64eff commit 9da51cfCopy full SHA for 9da51cf
packages/compass-collection/src/components/mock-data-generator-modal/script-generation-utils.spec.ts
@@ -19,7 +19,7 @@ function testDocumentCodeExecution(script: string): any {
19
// The "{ ... }" part is the document structure
20
21
// Extract the return statement from the generateDocument function
22
- const returnMatch = script.match(/return ([\s\S]*?);[\s]*\}/);
+ const returnMatch = script.match(/return (.*?);\s*\}/s);
23
expect(returnMatch, 'Should contain return statement').to.not.be.null;
24
25
// Get the document structure expression (everything between "return" and ";")
0 commit comments