Skip to content

Commit

Permalink
Merged in bugfix/#15 (pull request #306)
Browse files Browse the repository at this point in the history
[#15]
  • Loading branch information
Jonathan Johnson committed Feb 27, 2019
2 parents 6570a4e + 3f2f17f commit e9682d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class JPAMetadataResolverServiceImpl implements MetadataResolverService {
private String generateJavaScriptRegexScript(String regex) {
return """
"use strict";
${regex}.test(input.getEntityID());\n"""
${regex.startsWith('/') ? '' : '/'}${regex}${regex.endsWith('/') ? '' : '/'}.test(input.getEntityID());\n"""
}

void constructXmlNodeForFilter(EntityRoleWhiteListFilter filter, def markupBuilderDelegate) {
Expand Down

0 comments on commit e9682d0

Please sign in to comment.