From bb55f5aec092b22ee4b86152c0e0111df48eb34e Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 2 Aug 2012 15:53:51 -0400 Subject: Compile regex patterns once and use matches instead of find (issue 103) --- tests/com/gitblit/tests/JGitUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/com') diff --git a/tests/com/gitblit/tests/JGitUtilsTest.java b/tests/com/gitblit/tests/JGitUtilsTest.java index 495a00b7..ee60d05c 100644 --- a/tests/com/gitblit/tests/JGitUtilsTest.java +++ b/tests/com/gitblit/tests/JGitUtilsTest.java @@ -86,7 +86,7 @@ public class JGitUtilsTest { list = JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true, -1, Arrays.asList("test/*")); assertFalse("Repository exclusion failed!", list.contains("test/jgit.git")); - list = JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true, -1, Arrays.asList("(jgit)+")); + list = JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true, -1, Arrays.asList(".*jgit.*")); assertFalse("Repository exclusion failed!", list.contains("test/jgit.git")); assertFalse("Repository exclusion failed!", list.contains("working/jgit")); assertFalse("Repository exclusion failed!", list.contains("working/jgit2")); -- cgit v1.2.3