dotnet / dotnet/ResXResourceManager

Detect Code References doesn't work with Regex

Open
#80 16 comments 0 reactions 0 assignees View on GitHub
Feature request Up for grabs
Dominant language
C#
Stars
1.5k
Forks
251
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Hello,

We're using the Extended Strongly Typed Resource Generator, which generates some extra methods for string formatting in our resources' .Designer.cs files. For example Account.CancelInfo, which got {{0}} in it, will generate Account.CancelInfoFormat(obj arg0) automatically.

We're trying to detect these method references with the following regular expression:
($File.$Key)Format\((\w+,?\W?)+\)

![image](https://user-images.githubusercontent.com/1837463/35917534-cac8fa22-0c0e-11e8-95af-97fd2fe24bf9.png)

According to multiple expression testers, this pattern matches Account.CancelInfoFormat(xxx). But for some reason we find 0 references:
![image](https://user-images.githubusercontent.com/1837463/35917645-35a98870-0c0f-11e8-99c6-d7651392e45a.png)

Do you have an explanation for this, like why doesn't the regular expression match?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.