v16.6-a5 fix issue reported by @SaurabhBhaiyaji

This commit is contained in:
Austin Huang 2020-07-05 23:21:46 -04:00
parent 07dd0e12a1
commit e705131dea
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -215,7 +215,7 @@ public final class Utils {
if (++i == commentLength) break;
currChar = text.charAt(i);
if (currChar == '.') {
if (currChar == '.' && i + 1 < commentLength) {
final char nextChar = text.charAt(i + 1);
if (nextChar == '.' || nextChar == ' ' || nextChar == '#' || nextChar == '@' || nextChar == '/'
|| nextChar == '\r' || nextChar == '\n') {