No description
Summary: When we are using `.*` patterns, this causes an infinite loop. What happens is we are adding text to the end and then replacing that. Its only when we are matching the end of the output string. We can detect this when the starting point is the same as the end point and the match is "" (an empty string). If we hit this condition we can get out and return the output that has been replaced. Test Plan: Test in CI |
||
|---|---|---|
| .github/workflows | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
Dev Case
A regex search and replace tool for preserving case
Description
Dev Case is a command-line tool built with Rust that simplifies regex search and replace operations while preserving the case of the matched text. It allows developers to efficiently manipulate text files while maintaining the original casing of the content.
Features
- Regex Search and Replace: Perform search and replace operations using regular expressions.
- Case Preservation: Maintain the original casing of the matched text during replacement.
- CLI Interface: Command-line interface for easy integration into development workflows.
- Built with Rust: Utilizes the performance and safety benefits of the Rust programming language.