Skip to content

fix: properly handle $ at end of input#33

Merged
de-vri-es merged 1 commit intofizyr:mainfrom
kaspar030:fix-panic-dollar-eos
May 9, 2025
Merged

fix: properly handle $ at end of input#33
de-vri-es merged 1 commit intofizyr:mainfrom
kaspar030:fix-panic-dollar-eos

Conversation

@kaspar030
Copy link
Contributor

... prevents panics like this:

thread 'main' panicked at /home/xxx/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/subst-0.3.7/src/template/raw/parse.rs:61:12:
index out of bounds: the len is 1 but the index is 1

Copy link
Contributor

@de-vri-es de-vri-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eep, good catch. Thanks for fixing this and adding a test case!

@de-vri-es de-vri-es merged commit 89c93ed into fizyr:main May 9, 2025
1 check passed
@de-vri-es
Copy link
Contributor

Released as v0.3.8. Thanks again!

@kaspar030 kaspar030 deleted the fix-panic-dollar-eos branch May 9, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants