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 c05c9e4 commit 1d93a20Copy full SHA for 1d93a20
packages/apollo-language-server/src/document.ts
@@ -89,7 +89,7 @@ function extractGraphQLDocumentsFromJSTemplateLiterals(
89
90
const documents: GraphQLDocument[] = [];
91
92
- const regExp = new RegExp(`${tagName}\\s*\`([\\s\\S]+?)\``, "gm");
+ const regExp = new RegExp(`${tagName}\\s*(?:<([\\sa-zA-Z0-9_,<>]+)>)?\\s*\`([\\s\\S]+?)\``, "gm");
93
94
let result;
95
while ((result = regExp.exec(text)) !== null) {
0 commit comments