fix: quote role autocomplete values #241

Open
bpwang wants to merge 1 commit from fix/role-autocomplete-logical-operators into main
Member

Fixes #218
Quotes role names returned by /role autocomplete so role names containing logical operators are treated as a single role name by the parser. Also removes the additional display quotes so the role is not displayed with duplicate quotation marks.
Testing

  • Tested /role members with roles containing and, or
  • Tested /role count
  • Tested compound expressions containing quoted role names

Side effect
Autocomplete now passes quoted role names into roleString. The lookup compares roleString against raw Discord role names. This appears to break single-role embed coloring. I left this unchanged for now.

Fixes #218 Quotes role names returned by /role autocomplete so role names containing logical operators are treated as a single role name by the parser. Also removes the additional display quotes so the role is not displayed with duplicate quotation marks. Testing - Tested /role members with roles containing and, or - Tested /role count - Tested compound expressions containing quoted role names Side effect Autocomplete now passes quoted role names into roleString. The lookup compares roleString against raw Discord role names. This appears to break single-role embed coloring. I left this unchanged for now.
fix: quote role autocomplete values
Some checks failed
CI / check-1 (pull_request) Failing after 8s
CI / build (pull_request) Failing after 7s
CI / check (pull_request) Failing after 0s
kennel/build build succeeded
ab4bc1df7e
Some checks failed
CI / check-1 (pull_request) Failing after 8s
CI / build (pull_request) Failing after 7s
CI / check (pull_request) Failing after 0s
kennel/build build succeeded
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/role-autocomplete-logical-operators:fix/role-autocomplete-logical-operators
git switch fix/role-autocomplete-logical-operators

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/role-autocomplete-logical-operators
git switch fix/role-autocomplete-logical-operators
git rebase main
git switch main
git merge --ff-only fix/role-autocomplete-logical-operators
git switch fix/role-autocomplete-logical-operators
git rebase main
git switch main
git merge --no-ff fix/role-autocomplete-logical-operators
git switch main
git merge --squash fix/role-autocomplete-logical-operators
git switch main
git merge --ff-only fix/role-autocomplete-logical-operators
git switch main
git merge fix/role-autocomplete-logical-operators
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/dalmatian!241
No description provided.