10BC0 Rework lettuce argument splitter regex by laurit · Pull Request #13736 · open-telemetry/opentelemetry-java-instrumentation · GitHub
[go: up one dir, main page]

Skip to content
Merged
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 @@ -14,7 +14,7 @@

public final class LettuceArgSplitter {
private static final Pattern KEY_PATTERN =
Pattern.compile("((key|value)<(?<wrapped>[^>]+)>|(?<plain>[0-9A-Za-z=]+))(\\s+|$)");
Pattern.compile("((key|value)<(?<wrapped>.*?)>|(?<plain>\\S++))(?:\\s+|$)");

// this method removes the key|value<...> wrappers around redis keys or values and splits the args
// string
Expand Down
Loading
0