diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/codeInsight/UseDistributionWithSourcesNotificationProvider.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/codeInsight/UseDistributionWithSourcesNotificationProvider.java index 592b668a6ff8..7ac99066d74f 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/codeInsight/UseDistributionWithSourcesNotificationProvider.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/codeInsight/UseDistributionWithSourcesNotificationProvider.java @@ -65,14 +65,14 @@ import java.util.regex.Pattern; * @since 9/13/13 */ public class UseDistributionWithSourcesNotificationProvider extends EditorNotifications.Provider { - public static final Pattern GRADLE_SRC_DISTIBUTION_PATTERN; + public static final Pattern GRADLE_SRC_DISTRIBUTION_PATTERN; private static final Logger LOG = Logger.getInstance("#" + UseDistributionWithSourcesNotificationProvider.class.getName()); private static final Key KEY = Key.create("gradle.notifications.use.distribution.with.sources"); private static final String ALL_ZIP_DISTRIBUTION_URI_SUFFIX = "-all.zip"; private final Project myProject; static { - GRADLE_SRC_DISTIBUTION_PATTERN = Pattern.compile("http\\\\?://services\\.gradle\\.org.*" + ALL_ZIP_DISTRIBUTION_URI_SUFFIX); + GRADLE_SRC_DISTRIBUTION_PATTERN = Pattern.compile("https?\\\\?://services\\.gradle\\.org.*" + ALL_ZIP_DISTRIBUTION_URI_SUFFIX); } public UseDistributionWithSourcesNotificationProvider(Project project, final EditorNotifications notifications) { @@ -190,7 +190,7 @@ public class UseDistributionWithSourcesNotificationProvider extends EditorNotifi // currently only wrapped distribution takes into account if (wrapperConfiguration == null) return true; String distributionUri = wrapperConfiguration.getDistribution().toString(); - return GRADLE_SRC_DISTIBUTION_PATTERN.matcher(distributionUri).matches(); + return GRADLE_SRC_DISTRIBUTION_PATTERN.matcher(distributionUri).matches(); } @Nullable