Skip to content

Commit 91a5319

Browse files
committed
Revert "Update GraphQlReader.php"
This reverts commit 53c5cf8.
1 parent 53c5cf8 commit 91a5319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/GraphQlSchemaStitching/GraphQlReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private function addPlaceHolderInSchema(string $graphQlSchemaContent) :string
354354
$typesKindsPattern = '(type|interface|input|union)';
355355
$enumKindsPattern = '(enum)';
356356
$typeNamePattern = '([_A-Za-z][_0-9A-Za-z]+)';
357-
$typeDefinitionPattern = '([^\{\}]*)(\{[\s\t\n\r^\}]*\})';
357+
$typeDefinitionPattern = '([^\{]*)(\{[\s\t\n\r^\}]*\})';
358358
$spacePattern = '([\s\t\n\r]+)';
359359

360360
//add placeholder in empty types

0 commit comments

Comments
 (0)