0no-co / graphql.web

The spec-compliant minimum of client-side GraphQL.
MIT License
74 stars 1 forks source link

fix: Fix typo causing complex string parsing to fail on subsequent runs #31

Closed kitten closed 1 month ago

kitten commented 1 month ago

Resolve https://github.com/0no-co/gql.tada/issues/379

Summary

This causes "\\" escape sequences in strings to not be detected the second time around, since lastIndex doesn't reset due to the typo of g added to the regex.

Set of changes

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 5608597aa8895edd577958e6affd1724d0497534

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @0no-co/graphql.web | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR