Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strip-comments #189

Merged
merged 3 commits into from
Jan 7, 2022
Merged

Fix strip-comments #189

merged 3 commits into from
Jan 7, 2022

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Jan 7, 2022

Original comment by @MakMuftic:

Description

Based on the discussion ChainSafe/filsnap#88 and some further investigation, I realized that the problem origin is inside the library used for stripping comments. The problem occurs if there are double quotes inside the comment, and this issue has been created inside strip-comments lib (jonschlinkert/strip-comments#49). Unfortunately, this PR with the fix is stale for some time now, so inside our fork of snaps-cli we used a forked version of strip-comments library.

Changes

In this PR I replaced strip-comments with our fork that:

  • fixes a bug with double quotes inside the comment
  • already contains types, so no need for importing them

@rekmarks rekmarks mentioned this pull request Jan 7, 2022
@rekmarks rekmarks changed the title Rekmarks/fix strip comments fixes Fix strip-comments Jan 7, 2022
@MakMuftic

This comment has been minimized.

@rekmarks rekmarks merged commit c18fa79 into main Jan 7, 2022
@rekmarks rekmarks deleted the rekmarks/fix-strip-comments-fixes branch January 7, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants