Crazylychee commented on code in PR #9440:
URL: https://github.com/apache/rocketmq/pull/9440#discussion_r2125842561
##########
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:
Thank you for your correction, but it should be
StringUtils.replace(config,"\\","\\\\"); Single \ is an escape character in
Java.🤔
--
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]