DNR: Change regexSubstitution semantics.
Instead of using RE2::Extract, use RE2::Replace. This is preferred because: - This is the more common variant of substitutions. E.g. Javascript replace also does this. - With this change, it would be easier to add global replace later if need be by adding a single key to the Redirect dictionary. BUG=974391 Change-Id: Id1b3bf2fe9d21b3aa75e5215b1abaa6450d70979 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2021164 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#735532}
Showing
Please register or sign in to comment