Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override toRegularExpression in AbstractKotlinCodegen so that there are no additional forward slashes generated on a (regex)pattern #1289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ public void setSupportJava6(boolean value) {
this.supportJava6 = value;
}

@Override
public String toRegularExpression(String pattern) {
return escapeText(pattern);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ public void addHandlebarHelpers(Handlebars handlebars) {
handlebars.registerHelpers(ConditionalHelpers.class);
}

@Override
public String toRegularExpression(String pattern) {
return escapeText(pattern);
}

/**
* Provides a strongly typed declaration for simple arrays of some type and arrays of arrays of some type.
*
Expand Down