diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java b/extractor/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java index 124a9bc8..0abfbddc 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java @@ -20,8 +20,8 @@ public final class Utils { public static final String HTTPS = "https://"; public static final String UTF_8 = "UTF-8"; public static final String EMPTY_STRING = ""; - private static final Pattern M_PATTERN = Pattern.compile("(https?)?:\\/\\/m\\."); - private static final Pattern WWW_PATTERN = Pattern.compile("(https?)?:\\/\\/www\\."); + private static final Pattern M_PATTERN = Pattern.compile("(https?)?://m\\."); + private static final Pattern WWW_PATTERN = Pattern.compile("(https?)?://www\\."); private Utils() { // no instance