sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Add [GeneratedRegex] properties

Open jamescrosswell opened this issue 4 months ago • 0 comments

We've got lots of regexes defined as properties, with backing methods specifically because we had to use methods to leverage the source generated regexes. For example: https://github.com/getsentry/sentry-dotnet/blob/3e70c3126515c87b1851b6a9a7afd99ffbb9aeb7/src/Sentry/Internal/OriginHelper.cs#L8-L18

We should be able to tidy that code up now that [GeneratedRegex] can also be added to properties.

jamescrosswell avatar Oct 16 '24 20:10 jamescrosswell