Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: move app URL parsing to its own package#11651

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 9 commits intomainfromstevenmasley/ports_in_wildcard
Jan 17, 2024

Conversation

@Emyrk
Copy link
Member

@EmyrkEmyrk commentedJan 16, 2024
edited
Loading

What this does

ParsingCODER_WILDCARD_ACCESS_URL as aurl.URL was always incorrect (seehttps://goplay.tools/snippet/YHUpcSkVrli). Since wildcard urls do not have a scheme, the url parsing was never accurate to how it parsed things. And it would not accept ports.

We have a wildcard parse function, so why not make that the validation instead of using the url andurl.String().

Lastly I movedappurl to it's own package to avoid import loops. This is a reasonable thing to package.

In support of#8189. We need to move the field from a url to a string to support ports.

@EmyrkGraphite App
Copy link
MemberAuthor

Emyrk commentedJan 16, 2024
edited
Loading

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@Emyrk and the rest of your teammates onGraphiteGraphite

@EmyrkEmyrk changed the titlechore: move app url parsing to it's own packagechore: move app URL parsing to its own packageJan 16, 2024
@EmyrkEmyrk marked this pull request as ready for reviewJanuary 17, 2024 01:20
Comment on lines +13 to +14
//nameRegex isthesame as our UsernameRegex without the ^ and $.
nameRegex="[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think it should still trim the old regex instead TBH

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Because of import loops, we would need to put that regex in some other package then 😢.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

codersdk maybe?

@EmyrkEmyrk added release/breakingThis label is applied to PRs to detect breaking changes as part of the release process and removed release/breakingThis label is applied to PRs to detect breaking changes as part of the release process labelsJan 17, 2024
@EmyrkEmyrk merged commitb246f08 intomainJan 17, 2024
@EmyrkEmyrk deleted the stevenmasley/ports_in_wildcard branchJanuary 17, 2024 16:41
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@EmyrkEmyrk

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Emyrk@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp