Skip to content

Commit b23ac6c

Browse files
committed
Remove redundant label and escape
1 parent 298a132 commit b23ac6c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • commonmark/src/main/java/org/commonmark/internal/util

commonmark/src/main/java/org/commonmark/internal/util/Escaping.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public class Escaping {
99

10-
public static final String ESCAPABLE = "[!\"#$%&\'()*+,./:;<=>?@\\[\\\\\\]^_`{|}~-]";
10+
public static final String ESCAPABLE = "[!\"#$%&'()*+,./:;<=>?@\\[\\\\\\]^_`{|}~-]";
1111

1212
public static final String ENTITY = "&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});";
1313

@@ -57,7 +57,6 @@ public static String escapeHtml(String input) {
5757
// Avoid building a new string in the majority of cases (nothing to escape)
5858
StringBuilder sb = null;
5959

60-
loop:
6160
for (int i = 0; i < input.length(); i++) {
6261
char c = input.charAt(i);
6362
String replacement;
@@ -78,7 +77,7 @@ public static String escapeHtml(String input) {
7877
if (sb != null) {
7978
sb.append(c);
8079
}
81-
continue loop;
80+
continue;
8281
}
8382
if (sb == null) {
8483
sb = new StringBuilder();

0 commit comments

Comments
 (0)