olijeffers0n / rustplus

Rust+ API Wrapper Written in Python for the Game: Rust
https://rplus.ollieee.xyz/
MIT License
102 stars 28 forks source link

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

Closed cviper13 closed 6 months ago

cviper13 commented 6 months ago

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.