Remove unnecessary escapes in regular expressions

See gh-24470
This commit is contained in:
Hyunjin Choi
2020-02-03 21:30:25 +09:00
committed by Rossen Stoyanchev
parent cf9a052e3a
commit 273812f9c5
11 changed files with 24 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ class ClassPathResourceTests {
*/
private static final String FQ_RESOURCE_PATH_WITH_LEADING_SLASH = '/' + FQ_RESOURCE_PATH;
private static final Pattern DESCRIPTION_PATTERN = Pattern.compile("^class path resource \\[(.+?)\\]$");
private static final Pattern DESCRIPTION_PATTERN = Pattern.compile("^class path resource \\[(.+?)]$");
@Test