fix #2081 check if word contains sp
This commit is contained in:
parent
9cb87d32d6
commit
6d7b699252
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package org.codelibs.fess.app.web.admin.badword;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
|
@ -31,6 +32,7 @@ public class CreateForm {
|
|||
public Integer crudMode;
|
||||
|
||||
@Required
|
||||
@Pattern(regexp = "[^\\s]+")
|
||||
public String suggestWord;
|
||||
|
||||
@Size(max = 1000)
|
||||
|
|
Loading…
Add table
Reference in a new issue