Closed
Description
Below method create a problem when we generate pattern regex in our code.
Problem is generate contain extra '' when we apply bean validation @pattern like that :- /[a-zA-Z]/
public String addRegularExpressionDelimiter(String pattern) {
if (pattern != null && !pattern.matches("^/.*")) {
return "/" + pattern + "/";
}
return pattern;
}
Location of source file line number 3285 : https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java#L3285
My question is that any specific reason to add this method because this method is newly introduce.