Regex find with line start matches mid-line on "find next" #10887
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-find
Editor find operations
verified
Verification succeeded
Milestone
Steps to Reproduce:
{
a
s^[^{]
. The first character of the matching line is selected, as expected, with the find box stating something like "1 of 338"^a
, if you went with 1.iIt seems as if the search is run on the substring starting after the current match; but the beginning of this substring is erroneously interpreted as "start of line".
A symmetric issue occurs with
a$
and find previous.For the moment, my workaround is searching for
^[^{].*$
The text was updated successfully, but these errors were encountered: