Merge pull request #3494 from osher/patch-1

NodeJS generator - Harken to the the warnings ...
This commit is contained in:
wing328 2016-08-01 20:43:18 +08:00 committed by GitHub
commit 103cc7410b

View File

@ -320,4 +320,14 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
return removeNonNameElementToCamelCase(name, "[-:;#]"); return removeNonNameElementToCamelCase(name, "[-:;#]");
} }
@Override
public String escapeUnsafeCharacters(String input) {
return input.replace("*/", "*_/").replace("/*", "/_*");
}
@Override
public String escapeQuotationMark(String input) {
// remove " to avoid code injection
return input.replace("\"", "");
}
} }