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

Troubles with 6-digit numbers #5

Open
damevanderjahr opened this issue Aug 7, 2021 · 1 comment
Open

Troubles with 6-digit numbers #5

damevanderjahr opened this issue Aug 7, 2021 · 1 comment

Comments

@damevanderjahr
Copy link

Numbers such as 402637 converted to Unicode characters such as ☷.

It is caused by incorrect regex pattern in TelegramBotManager.java, line 189:
Pattern p = Pattern.compile("(\\w[0x])([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);

I replaced it with
Pattern p = Pattern.compile("(0x)([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);

and it perfectly works with TeamCity 2021.1.2. To send ☷ I can just print it as 0x2637 in FreeMarker template.

It might be helpful to fix this in the project code.

@ItgLvb
Copy link
Owner

ItgLvb commented Aug 9, 2021

Hi.
I think you right.
Сan you make a pull request?

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

No branches or pull requests

2 participants