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

Regex escape sequences lead to incorrect generated code #106

Closed
asm0dey opened this issue Mar 7, 2024 · 2 comments
Closed

Regex escape sequences lead to incorrect generated code #106

asm0dey opened this issue Mar 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@asm0dey
Copy link

asm0dey commented Mar 7, 2024

Describe the bug
If I use \s in command like @RegexCommandHandler("/go\\s") I get a compilation error

Expected behavior
The string remains as is in the generated code and does not lead to a compilation error

I assume that the issue is code is generated somehow manually instead of using specialized libraries like KotlinPoet

@asm0dey asm0dey added the bug Something isn't working label Mar 7, 2024
@vendelieu
Copy link
Owner

Thanks for report.
The problem was incorrect string inlining.
Fixed in 5.0.2, If the problem is still present please let me know.

@asm0dey
Copy link
Author

asm0dey commented Mar 9, 2024

Fix verified!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants