Skip to content

Commit adbbdc7

Browse files
committed
[YouTube] Fix regex warning: use ' {2}' instead of ' '
1 parent 24e8399 commit adbbdc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public static String getTextFromObject(final JsonObject textObject, final boolea
812812

813813
if (html) {
814814
text = text.replaceAll("\\n", "<br>");
815-
text = text.replaceAll(" ", " &nbsp;");
815+
text = text.replaceAll(" {2}", " &nbsp;");
816816
}
817817

818818
return text;

0 commit comments

Comments
 (0)