Skip to content

Respects quotes in set api#5227

Closed
bobloy wants to merge 2 commits into
Cog-Creators:V3/developfrom
bobloy:set_api_quotes
Closed

Respects quotes in set api#5227
bobloy wants to merge 2 commits into
Cog-Creators:V3/developfrom
bobloy:set_api_quotes

Conversation

@bobloy

@bobloy bobloy commented Aug 25, 2021

Copy link
Copy Markdown
Contributor

Description of the changes

Uses a regex pattern that respects quotes and uses findall instead of split.

image

Closes #5222

Alternative to #5226

@bobloy

bobloy commented Aug 25, 2021

Copy link
Copy Markdown
Contributor Author

Previous version included the quotes in the token, now strips quotes.
image

Note: Only works with double quotes.

@Jackenmen Jackenmen added Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Status: Needs Discussion Needs more discussion. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. labels Sep 1, 2021
@Jackenmen Jackenmen removed this from the Backlog of non-breaking changes milestone May 22, 2026
@Jackenmen

Copy link
Copy Markdown
Member

Superseded by #6762

@Jackenmen Jackenmen closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Status: Needs Discussion Needs more discussion. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core set api] Bot ignore the api if token contain ";"

2 participants