fix another replaceall in perl codegen

This commit is contained in:
wing328
2016-01-15 16:03:35 +08:00
parent cbbb48a4e4
commit bfb8cdce2e
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
if (additionalProperties.containsKey(MODULE_NAME)) {
setModuleName((String) additionalProperties.get(MODULE_NAME));
setModulePathPart(moduleName.replaceAll("::",String.valueOf(File.separatorChar)));
setModulePathPart(moduleName.replaceAll("::", Matcher.quoteReplacement(File.separator)));
} else {
additionalProperties.put(MODULE_NAME, moduleName);
}