From b8c2bd356440edbc515f2e48e124577e574972dc Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Thu, 24 Jan 2019 20:03:10 +0100 Subject: [PATCH] Closes #267: spaces not allowed in group names --- .../src/main/webapp/src/partial/docs/settings.group.edit.html | 2 ++ .../test/java/com/sismics/docs/rest/TestDocumentResource.java | 1 + 2 files changed, 3 insertions(+) diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.group.edit.html b/docs-web/src/main/webapp/src/partial/docs/settings.group.edit.html index f93accd0..6e0938cc 100644 --- a/docs-web/src/main/webapp/src/partial/docs/settings.group.edit.html +++ b/docs-web/src/main/webapp/src/partial/docs/settings.group.edit.html @@ -9,6 +9,7 @@
@@ -16,6 +17,7 @@ {{ 'validation.required' | translate }} {{ 'validation.too_short' | translate }} {{ 'validation.too_long' | translate }} + {{ 'validation.no_space' | translate }} diff --git a/docs-web/src/test/java/com/sismics/docs/rest/TestDocumentResource.java b/docs-web/src/test/java/com/sismics/docs/rest/TestDocumentResource.java index 9f0c78d0..4b426beb 100644 --- a/docs-web/src/test/java/com/sismics/docs/rest/TestDocumentResource.java +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestDocumentResource.java @@ -185,6 +185,7 @@ public class TestDocumentResource extends BaseJerseyTest { // Search documents Assert.assertEquals(1, searchDocuments("full:uranium full:einstein", document1Token)); Assert.assertEquals(2, searchDocuments("tit*", document1Token)); + Assert.assertEquals(2, searchDocuments("docu*", document1Token)); Assert.assertEquals(2, searchDocuments("full:title", document1Token)); Assert.assertEquals(2, searchDocuments("title", document1Token)); Assert.assertEquals(1, searchDocuments("super description", document1Token));