|
@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
-import java.net.URLEncoder;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -58,7 +57,10 @@ public class IntervalScoringTableController {
|
|
|
|
|
|
try {
|
|
|
intervalScoringTable.setRange(URLDecoder.decode(intervalScoringTable.getRange()));
|
|
|
- intervalScoringTable.setRegularExpression(URLDecoder.decode(intervalScoringTable.getRegularExpression()));
|
|
|
+ String regularExpression = intervalScoringTable.getRegularExpression();
|
|
|
+ //字符串空格替换
|
|
|
+ regularExpression.replaceAll("","+");
|
|
|
+ intervalScoringTable.setRegularExpression(regularExpression);
|
|
|
boolean b = intervalScoringTableService.saveOrUpdate(intervalScoringTable);
|
|
|
if (b) {
|
|
|
return R.ok().data(b);
|