HF RL Explorer

extractDocumentFromJavascript mishandles GraphQL comments and does not filter out fully commented-out gql…

extractDocumentFromJavascript mishandles GraphQL comments and does not filter out fully commented-out gql…: a task in LegoFlow-SWE (Harbor dataset). The extractDocumentFromJavascript function is intended to extract GraphQL document strings from gql -tagged template literals in…

The task

The `extractDocumentFromJavascript` function is intended to extract GraphQL document strings from `gql`-tagged template literals in JavaScript/TypeScript source. However, it currently fails when the embedded GraphQL contains comments (lines starting with `#`), and it does not properly skip template literals that are…

Part of Lego-X/LegoFlow-SWE.