Skip to content

Commit

Permalink
Merge pull request #3813 from actiontech/fix/1752
Browse files Browse the repository at this point in the history
[inner-1752] fix: replace Chinese commas
  • Loading branch information
LUAgam authored Sep 5, 2023
2 parents 7f590f4 + 8531b69 commit 9c1fc29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public KeyVariables call() {
if (!await) {
fail = true;
isFinish = true;
LOGGER.warn("test conn timeoutTCP connection may be lost");
LOGGER.warn("test conn timeout,TCP connection may be lost");
}
}
} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ private void checkChineseProperty(String val, String name) {
}
int length = 11;
if (val.length() > length) {
problemReporter.warn("Property [ " + name + " ] " + val + " in bootstrap.cnf is illegalthe value contains a maximum of " + length + " characters");
problemReporter.warn("Property [ " + name + " ] " + val + " in bootstrap.cnf is illegal,the value contains a maximum of " + length + " characters");
}

String chinese = val.replaceAll(XMLDbLoader.PATTERN_DB.toString(), "");
Expand All @@ -1371,7 +1371,7 @@ private void checkChineseProperty(String val, String name) {
}

if (!StringUtil.isChinese(chinese)) {
problemReporter.warn("Property [ " + name + " ] " + val + " in bootstrap.cnf is illegalthe " + Charset.defaultCharset().name() + " encoding is recommended, Property [ " + name + " ] show be use u4E00-u9FA5a-zA-Z_0-9\\-\\.");
problemReporter.warn("Property [ " + name + " ] " + val + " in bootstrap.cnf is illegal,the " + Charset.defaultCharset().name() + " encoding is recommended, Property [ " + name + " ] show be use u4E00-u9FA5a-zA-Z_0-9\\-\\.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ private void checkChineseProperty(String val, String name) {
}

if (!StringUtil.isChinese(chinese)) {
throw new ConfigException("Column [ " + name + " ] " + val + " is illegalthe " + Charset.defaultCharset().name() + " encoding is recommended, Column [ " + name + " ] show be use u4E00-u9FA5a-zA-Z_0-9\\-\\.");
throw new ConfigException("Column [ " + name + " ] " + val + " is illegal,the " + Charset.defaultCharset().name() + " encoding is recommended, Column [ " + name + " ] show be use u4E00-u9FA5a-zA-Z_0-9\\-\\.");
}
}

Expand Down

0 comments on commit 9c1fc29

Please sign in to comment.