-
Notifications
You must be signed in to change notification settings - Fork 71
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
Validate topic names #103
Validate topic names #103
Conversation
Reviews in this chain: |
|
23ec53a
to
9736a98
Compare
revup/topic_stack.py
Outdated
@@ -54,6 +54,8 @@ def format_remote_branch(uploader: str, base_branch: str, topic: str) -> str: | |||
|
|||
RE_COMMIT_LABEL = re.compile(r"^(?P<label1>[a-zA-Z\-_0-9]+):.*|^\[(?P<label2>[a-zA-Z\-_0-9]+)\].*") | |||
|
|||
RE_BRANCH_ALLOWED = re.compile(r"^[a-zA-Z\d_\.\/-]+$") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\w
instead of a-zA-Z\d
so unicode can be used
Also, comment on where this restriction comes from (valid branch names?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm i haven't tested with unicode but let me try that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(commented)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm github doesn't seem super happy but it did work #106 so i'll go with this
2e2dd00
to
e844f7d
Compare
Catch the common case of someone sticking an invalid char in the topic line. Topic: catch1-./Q Reviewers: brian-k
5fa08e8
to
e45db27
Compare
Catch the common case of someone sticking an invalid char in the topic
line.
Topic: catch1-./Q
Reviewers: brian-k