Skip to content

Commit

Permalink
Require named parameters to have a name
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens authored and datomo committed Dec 13, 2023
1 parent bba6e49 commit 1cce0ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class NamedValueProcessor {

// matches tags such as :name
private static final Pattern PLACEHOLDER_PATTERN = Pattern.compile( "(?<!'):([\\w]*)(?!')" );
private static final Pattern PLACEHOLDER_PATTERN = Pattern.compile( "(?<!'):(\\w+)(?!')" );
private static final String REPLACEMENT_CHARACTER = "?";
@Getter
private String processedQuery;
Expand Down

0 comments on commit 1cce0ae

Please sign in to comment.