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

Fixes #2407 StringIndexOutOfBounds caused by suffix before prefix #2408

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

inkfin
Copy link

@inkfin inkfin commented Apr 10, 2022

Fixes #2407

添加了一个if判断,如果右括号在左括号之前就继续while,逻辑比较简单。

第一次提PR,如果有什么遗漏的,还请海涵。🐷

@CLAassistant
Copy link

CLAassistant commented Apr 10, 2022

CLA assistant check
All committers have signed the CLA.

@inkfin
Copy link
Author

inkfin commented Apr 24, 2022

3e984c2中修复了在template name尾部写.会导致整行消失的问题。

添加了几个junit在1b97649中,分别测试了前后大括号以及.引发的异常问题。

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.

模板功能右大括号(})引起的StringIndexOutOfBoundsException
2 participants