Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Try-catch around constructing placeholders #93

Merged
merged 2 commits into from
Mar 5, 2022

Conversation

rymiel
Copy link
Member

@rymiel rymiel commented Mar 5, 2022

Fixes #87

Ugly code but this at least preserves all other placeholders while filtering out the invalid ones

Also replaces kotlin deprecated minutes(Int): Duration with Int.minutes extension property from Duration.Companion

@rymiel rymiel requested a review from kezz March 5, 2022 22:08
@rymiel rymiel self-assigned this Mar 5, 2022
@rymiel rymiel changed the title fix: Try-catch around construction placeholders fix: Try-catch around constructing placeholders Mar 5, 2022
Copy link
Member

@kezz kezz left a comment

Choose a reason for hiding this comment

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

Reckon it's worth replying with a ParseResult with the error message?

@rymiel
Copy link
Member Author

rymiel commented Mar 5, 2022

Didn't want to cause an error as that would block other placeholders from being used, plus I also wanted to add some logic directly to the placeholders input to specifically point out the invalid placeholder, but that's more frontend work

@rymiel rymiel merged commit d818429 into main Mar 5, 2022
@rymiel rymiel deleted the fix/invalid-placeholders branch March 5, 2022 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using invalid tag syntax in placeholder instantly closes websocket
2 participants