CBielstein / APRSsharp

APRS# - Modern APRS software for the amateur radio community
MIT License
12 stars 5 forks source link

Use constant string interpolation #86

Closed CBielstein closed 2 years ago

CBielstein commented 2 years ago

Description

C#10 introduced the ability for constant string interpolation. This means one constant string can be constructed from other constant strings and performance gains can be realized.

Currently, our regex patterns use string interpolation to include sub-patterns and promote reuse. However, since we haven't been on C#10 until recently, some of these strings could not be constant values.

This PR takes advantage of that and makes the remaining regex patterns constant across the board. This closes #81.

Changes

Validation