diff options
author | James Moger <james.moger@gitblit.com> | 2012-08-02 15:53:51 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-08-02 15:53:51 -0400 |
commit | bb55f5aec092b22ee4b86152c0e0111df48eb34e (patch) | |
tree | 6a006180354dd77eac0782250ff52961d5dad815 /tests/com | |
parent | 6adf56bb13227afac2c37871b3443fb5354d132c (diff) | |
download | gitblit-bb55f5aec092b22ee4b86152c0e0111df48eb34e.tar.gz gitblit-bb55f5aec092b22ee4b86152c0e0111df48eb34e.zip |
Compile regex patterns once and use matches instead of find (issue 103)
Diffstat (limited to 'tests/com')
-rw-r--r-- | tests/com/gitblit/tests/JGitUtilsTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"));
|