Merge tag 'release-1.1.0' into develop

release-1.1.0
This commit is contained in:
Mark Struchkov 2019-01-21 00:40:21 +03:00
commit b93caa67e2
4 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,7 @@
<groupId>org.sadtech.autoresponder</groupId>
<artifactId>core</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1.0-RELEASE</version>
<build>
<plugins>
<plugin>

View File

@ -2,7 +2,6 @@ package org.sadtech.autoresponder.repository;
import org.sadtech.autoresponder.entity.Person;
import java.util.Collection;
import java.util.Map;
public interface PersonRepository {

View File

@ -1,8 +1,5 @@
package org.sadtech.autoresponder.submodule.parser;
import lombok.Getter;
import lombok.Setter;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
@ -10,12 +7,17 @@ import java.util.regex.Pattern;
public class Parser {
@Getter
private Set<String> words = new HashSet<>();
@Setter
private String text;
public Set<String> getWords() {
return words;
}
public void setText(String text) {
this.text = text;
}
public void parse() {
Pattern p = Pattern.compile("[а-яА-Я0-9]+");
Matcher m = p.matcher(text);