-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve "Text data type does not delete as expected" (#68)
* Adjust check for zero-length ranges and rename variables Fixes #67 * Remove variable assignment for inserted value length * Add, document and reorder convenience methods for text manipulation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "Remove variable assignment for inserted value length" This reverts commit cebe3d5. * Combine deletion and insertion into a single-line replacement * Have the slice check returning a slice again The range length is computed outside/after the slice check * Add and adjust tests for insertion and deletion * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert changes on manipulation methods, but keep docstrings * Add test for single character replacements --------- Co-authored-by: Jakob Zahn <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8d8dce2
commit 60f1c4a
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters