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.
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
Implement wildcard selector, add
proxy
example #1020Implement wildcard selector, add
proxy
example #1020Changes from all commits
64901a9
2eaf655
bd7eea1
7b7c43b
4677a59
fbe82d2
2e633e3
23e2baf
75886af
0299f4d
1d102b0
7f1a7ea
7dba798
66a3455
f643a30
1b0c396
5cb1f3c
ee3d140
3ed386c
724ff9f
f4a2765
dc2a9fd
17067e7
a7e624a
f1429cf
0b7cf6e
cc078ea
c2a2697
99a4ff8
a2ba30a
9f58738
1a7b33c
00f360d
1bc3bb6
98da359
b498308
36a374c
d55c84b
fbc6097
7698ad5
c297f50
21bb558
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is very fragile because it changes syntax without looking at the semantics.
A point where this can fail is any input that includes a
_
token, such as:Since with this implementation we accept
_
as well as"_"
we should just remove this transformation and instead use a custom parsing local to this code point that parses the givenattr.tokens
instead of blindfoldedly applying these generic transformations to its input. And if the parsing findsselector = _
then it can replace it withselector = "_"
. This way we have a stable implementation without requiring too much efforts into re-implementing the custom parsing for attributes everywhere.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.
Yeah it's fragile, the case you mentioned is not possible though, since the impl of
transform_wildcard_selector_to_string
already has two preconditions that match onselector =
before replacing.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.
I'd appreciate if we create a follow-up issue that fixes this work around with a proper implementation that customizes the argument parsing.