mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Fix minor typos and potential errors
This commit is contained in:
@@ -90,10 +90,12 @@ public class MarkdownUtils {
|
||||
|
||||
int maxCount = 0;
|
||||
int matchCount;
|
||||
String match;
|
||||
|
||||
Matcher matcher = backticksPattern.matcher(string);
|
||||
while(matcher.find()) {
|
||||
matchCount = matcher.group(1).length();
|
||||
match = matcher.group(1);
|
||||
matchCount = match != null ? match.length() : 0;
|
||||
if (matchCount > maxCount)
|
||||
maxCount = matchCount;
|
||||
}
|
||||
|
Reference in New Issue
Block a user