mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: cleanup some regex warnings
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2016 Dave Griffith, Bas Leijdekkers
|
||||
* Copyright 2003-2017 Dave Griffith, Bas Leijdekkers
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
class FormatDecode {
|
||||
|
||||
private static final Pattern fsPattern = Pattern.compile("%(\\d+\\$)?([-#+ 0,(\\<]*)?(\\d+)?(\\.\\d*)?([tT])?([a-zA-Z%])");
|
||||
private static final Pattern fsPattern = Pattern.compile("%(\\d+\\$)?([-#+ 0,(<]*)?(\\d+)?(\\.\\d*)?([tT])?([a-zA-Z%])");
|
||||
|
||||
private FormatDecode() {}
|
||||
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ public class HardcodedFileSeparatorsInspection extends BaseInspection {
|
||||
* media types.
|
||||
*/
|
||||
@NonNls private static final String EXAMPLE_MIME_MEDIA_TYPE_PATTERN =
|
||||
"example/\\p{Alnum}+(?:[\\.\\-\\\\+]\\p{Alnum}+)*";
|
||||
"example/\\p{Alnum}+(?:[.\\-\\\\+]\\p{Alnum}+)*";
|
||||
/**
|
||||
* A regular expression pattern that matches strings which start with a URL
|
||||
* protocol, as they're likely to actually be URLs.
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
public class HardcodedLineSeparatorsInspection extends BaseInspection {
|
||||
|
||||
private static final Pattern newlines = Pattern.compile("\\\\n|\\\\r|\\\\0{0,1}12|\\\\0{0,1}15");
|
||||
private static final Pattern newlines = Pattern.compile("\\\\n|\\\\r|\\\\0?12|\\\\0?15");
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user