feat: Filter Selector chars by allowlist or blocklilst
#511
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Changes
Allowed
Selectorcharacters can be defined by an allow list or a block list.enum FilterType { Allowlist, Blocklist }WithBlocklistall Unicode characters are allowed, except those in the block list.Allowlistuses a list of characters that are allowed. The default characters are alphanumeric characters (upper and lower case), plus '_' and '-'.FilterType.Allowlistis the default and avoids breaking changes in the v3 major version.FilterType SelectorCharFiltertoParserSettingsclass CharSet. It represents a set of characters that supports efficient storage and lookup for both ASCII and non-ASCII characters. It is used in theParseras allow list or block list. The speed for parsingPlaceholdera decreases by ~25% compared to v3.2.0 to v3.6.1.Parserto useCharSetand handle the definedFilterTypeParserSettings: Re-order members, update internal properties to better align with classCharSet.Benchmark
Parser.ParseFormat("{SomePlaceholder1}{SomePlaceholder2}{SomePlaceholder3}{SomePlaceholder4}{SomePlaceholder5}");