Skip to content

EDIT comment not working #7

Open
@scottdorman

Description

@scottdorman

This may be due to newer versions of Visual Studio, but it appears that the "EDIT" comment support isn't working anymore. In Visual Studio 2022 (running community edition, and haven't tested this in any other versions or editions), comments are stored in the regex XML as all lowercase, so the Contains("EDIT") calls always return false.

This affects the following call sites:

var editing = data[index].Element("comment")?.Value.Contains("EDIT") == true;

.Where(e => e.Value.Contains("EDIT"));

and may also affect the REGEX at

return Regex.Replace(comment, @"\s*EDIT\s*", string.Empty);

If you retarget this to .NET 5.0+, you can use an overload on Contains that takes a StringComparison parameter.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions