Skip to content
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

Using shlex.split instead of pythons own split. #63

Merged
merged 4 commits into from
Mar 15, 2024
Merged

Using shlex.split instead of pythons own split. #63

merged 4 commits into from
Mar 15, 2024

Conversation

cviper13
Copy link
Contributor

Shlex.split:
>>> shlex.split("this is 'my string' that --has=arguments -or=something") ['this', 'is', 'my string', 'that', '--has=arguments', '-or=something']

Pythons own split:
>>> "this is 'my string' that --has=arguments -or=something".split(" ") ['this', 'is', "'my", "string'", 'that', '--has=arguments', '-or=something']

Basically shlex.split is better in my opinion also used by discord.py please fix if any errors i made.

Copy link
Owner

@olijeffers0n olijeffers0n left a comment

Choose a reason for hiding this comment

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

Assuming the API contract works like you have stated, good to go

@olijeffers0n olijeffers0n merged commit 20b4a1d into olijeffers0n:master Mar 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants