Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hash comment removal in GraphQL schemas
The regex used to remove hash comments originally used the re.MULTILINE flag. Now that that flag is gone, the '$' in the regex no longer makes sense (it only matches the end of the file). The regex also had a dangling '\1' backreference that has been removed as well. I recently federated some additional GraphQL types and converted docstrings to hash comments in the process, at which point I noticed the linter wasn't removing comments as expected. Issue: none Test plan: ka-lint services/*/*.graphql Auditors: csilvers
- Loading branch information