[all-commits] [llvm/llvm-project] 0804ef: [libc++] Fix `regex_search` to match `$` alone wit...

Sanjay Marreddi via All-commits all-commits at lists.llvm.org
Tue Jan 9 11:39:49 PST 2024


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

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

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

Using `regex_search` with the regex_constant `match_default` and a
simple regex pattern `$` is expected to match general strings such as
_"a", "ab", "abc"..._ at `[last, last)` positions. But, the current
implementation fails to do so.

Fixes #75042




More information about the All-commits mailing list