Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/undent. undent removes extra leading spaces from template literals and multi‑line strings. jsr.io/@okikio/undent
dedent indent outdent typescript
Something went wrong. Try again.
fix(cache): limit regex cache size to prevent unbounded growth master
Bounded the regex cache at 128 entries to avoid excessive memory usage from adversarially varied indent widths. This change improves performance by reusing compiled regex patterns for common indent widths. Signed-off-by: Okiki Ojo <hey@okikio.dev>
Author Okiki Ojo Date (Feb 21, 2026, 6:29 AM UTC) Commit d6f8217d d6f8217db9433de0d3aca1d64a81455d08dba47b Parent 44dca425 44dca42509ab9df7fb897968ce38930a29328f86