Skip to content

docs: Clarify that RegexMatcher uses a full regex match#20570

Merged
ggreenway merged 2 commits intoenvoyproxy:mainfrom
ggreenway:regex-docs
Mar 30, 2022
Merged

docs: Clarify that RegexMatcher uses a full regex match#20570
ggreenway merged 2 commits intoenvoyproxy:mainfrom
ggreenway:regex-docs

Conversation

@ggreenway
Copy link
Copy Markdown
Member

Signed-off-by: Greg Greenway ggreenway@apple.com

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Greg Greenway <ggreenway@apple.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #20570 was opened by ggreenway.

see: more, trace.

}

// The regex match string. The string must be supported by the configured engine.
// The regex match string. The string must be supported by the configured engine. The regex should
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not thrilled with this wording. Anyone have a better way to phrase it?

Copy link
Copy Markdown
Member

@daixiang0 daixiang0 Mar 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full match string supported by the specified regex engine?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "The regex is matched against the full string, not as a partial match."

@ggreenway
Copy link
Copy Markdown
Member Author

For reference, the matching is done as:

  bool match(absl::string_view value) const override {
    return re2::RE2::FullMatch(re2::StringPiece(value.data(), value.size()), regex_);
  }

Signed-off-by: Greg Greenway <ggreenway@apple.com>
@markdroth
Copy link
Copy Markdown
Contributor

/lgtm api

Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
Let's just wait for green CI.

@ggreenway ggreenway enabled auto-merge (squash) March 30, 2022 18:40
@ggreenway ggreenway merged commit 4aee67a into envoyproxy:main Mar 30, 2022
ravenblackx pushed a commit to ravenblackx/envoy that referenced this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants