xiaoyifang commented on code in PR #9440:
URL: https://github.com/apache/rocketmq/pull/9440#discussion_r2125821603
##########
common/src/main/java/org/apache/rocketmq/common/MixAll.java:
##########
@@ -557,4 +557,13 @@ public static boolean topicAllowsLMQ(String topic) {
&& !topic.startsWith(TopicValidator.SYSTEM_TOPIC_PREFIX)
&& !topic.equals(TopicValidator.RMQ_SYS_SCHEDULE_TOPIC);
}
+
+ public static String adjustConfigForPlatform(String config) {
+ if (StringUtils.isNotBlank(config)) {
+ if (isWindows()) {
+ config = config.replace("\\", "\\\\");
Review Comment:
paramater should also be changed.
```
config.replace("\\","\\\\")
```
equals to
```
StringUtils.replace(config,"\","\\");
```
the first use regex as paramater ,the second not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]