[all-commits] [llvm/llvm-project] 67f5df: Revert "[libc++] Fix `regex_search` to match `$` a...

Sanjay Marreddi via All-commits all-commits at lists.llvm.org
Wed Jan 17 04:51:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67f5df78d7d1d925100cc318e629bbde64337015
      https://github.com/llvm/llvm-project/commit/67f5df78d7d1d925100cc318e629bbde64337015
  Author: Sanjay Marreddi <sanjay.mareddi at gmail.com>
  Date:   2024-01-17 (Wed, 17 Jan 2024)

  Changed paths:
    M libcxx/include/regex
    M libcxx/test/std/re/re.const/re.matchflag/match_not_eol.pass.cpp

  Log Message:
  -----------
  Revert "[libc++] Fix `regex_search` to match `$` alone with `match_default` flag" (#78349)

The behavior of `std::regex_search` for patterns anchored both to the
start and to the end of the input went wrong after merging #77256 .
Patterns like `"^b*$"` started matching the strings such as `"a"`, which
is not expected.

Reverts the PR: #77256




More information about the All-commits mailing list