Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve readability and optimize toPosition function (opent…
…ibiabr#2928) Refactors the string.toPosition function to improve readability and optimize the code. The main changes include: • Renaming variables to more descriptive names. • Optimized pattern matching by reusing patterns. • Returning nil when no pattern is matched, improving error handling. These changes make the code clearer and more efficient without altering its functionality.
- Loading branch information