diff options
author | 2025-03-29 20:14:02 +0000 | |
---|---|---|
committer | 2025-03-29 20:14:02 +0000 | |
commit | 6c90ab7cf9297dd45802ab0cef21bbf62fd481a1 (patch) | |
tree | ffd998ae01eb839560f5420383c940180368b483 /tests/helpers.py | |
parent | Merge pull request #2973 from python-discord/feat/reminder-add-notify (diff) | |
parent | Merge branch 'main' into zen_slicing (diff) |
Zen slicing (#3297)
* Added the possibility of slicing for the zen command
* Fixed off-by-one error, as the end index can be equal to the length of the zen
* Added support for negative signs and replaced re.search by re.match
* Allows for end_index == len(zen_lines). Previously, in that case, end_index % zen_lines would be 0, even though it's the last line
* Allows for slicing without a specified end index (e.g. "1:" will return all lines from the second to the last)
* Update end index display when slicing in the zen command
Co-authored-by: Vivek Ashokkumar <[email protected]>
* Added tests for the zen command
---------
Co-authored-by: Vivek Ashokkumar <[email protected]>
Co-authored-by: ChrisJL <[email protected]>
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions