Repository navigation
Improve branch name sanitization - #526
Merged
Merged
Conversation
Also added some unit tests pulled from the GitHub Desktop for Windows code. Fixes #291
haacked
force-pushed
the
sanitize-branch-name
branch
from
October 12, 2016 20:56
7f5434f to
63d4d79
Compare
joshaber
suggested changes
Oct 12, 2016
joshaber
left a comment
Contributor
There was a problem hiding this comment.
Seems legit 👍 Just one 📖
| /** Sanitize a proposed branch name by replacing illegal characters. */ | ||
| export function sanitizedBranchName(name: string): string { | ||
| return name.replace(/ /g, '-') | ||
| return name.replace(/[\x00-\x20\x7F~^:?*\[\\|""<>]|@{|\.\.+|^\.|\.$|\.lock$|\/$/g, '-') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
joshaber
approved these changes
Oct 12, 2016
Contributor
mijiang168
pushed a commit
to mijiang168/desktop
that referenced
this pull request
Apr 22, 2022
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 22.14.13. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v22.14.13) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
mijiang168
pushed a commit
to mijiang168/desktop
that referenced
this pull request
Apr 22, 2022
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 22.14.13. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v22.14.13) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Jan 22, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Jan 22, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Mar 9, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Also added some unit tests pulled from the GitHub Desktop for Windows code.
Fixes #291