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

docs: improve protocol.handle file examples #42111

Merged
merged 2 commits into from May 13, 2024

Conversation

dsanders11
Copy link
Member

@dsanders11 dsanders11 commented May 10, 2024

Description of Change

Closes #42102.

The current example at the top of the file doesn't handle the edge case where a filename has a #, update it to match the pattern used in later examples. The second modified example was using path.join which wouldn't work well with absolute paths so update that as well.

cc @electron/docs

Checklist

  • PR description included and stakeholders cc'd
  • relevant documentation, tutorials, templates and examples are changed or added

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 10, 2024
@dsanders11 dsanders11 requested a review from nornagon May 10, 2024 00:28
@dsanders11 dsanders11 added target/30-x-y PR should also be added to the "30-x-y" branch. target/31-x-y PR should also be added to the "31-x-y" branch. and removed 30-x-y 31-x-y labels May 10, 2024
@dsanders11 dsanders11 added semver/patch backwards-compatible bug fixes and removed semver/none labels May 10, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 11, 2024
@codebytere codebytere merged commit 88f28a3 into main May 13, 2024
17 checks passed
@codebytere codebytere deleted the docs/improve-protocol-handle-file branch May 13, 2024 09:49
Copy link

release-clerk bot commented May 13, 2024

No Release Notes

@trop
Copy link
Contributor

trop bot commented May 13, 2024

I have automatically backported this PR to "30-x-y", please check out #42141

@trop trop bot added in-flight/30-x-y and removed target/30-x-y PR should also be added to the "30-x-y" branch. labels May 13, 2024
@trop
Copy link
Contributor

trop bot commented May 13, 2024

I have automatically backported this PR to "31-x-y", please check out #42142

@trop trop bot added in-flight/31-x-y merged/31-x-y PR was merged to the "31-x-y" branch. and removed target/31-x-y PR should also be added to the "31-x-y" branch. in-flight/31-x-y labels May 13, 2024
@trop trop bot added merged/30-x-y PR was merged to the "30-x-y" branch. and removed in-flight/30-x-y labels May 13, 2024
Mrnikifabio pushed a commit to Mrnikifabio/electron that referenced this pull request May 14, 2024
* docs: improve protocol.handle file examples

* chore: fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/30-x-y PR was merged to the "30-x-y" branch. merged/31-x-y PR was merged to the "31-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: protocol.handle fails when filename contains '#'
4 participants