Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constrain custom selectors and operators #172

Merged

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented May 29, 2021

  • Custom selector chars can be added, if not disallowed or in use as an operator char
  • Custom operator chars can be added, if not disallowed or in use as a selector char
  • Added corresponding unit tests
  • Alphanumeric selector chars are the only option now and cannot be degraded to pure numeric chars
  • PlaceholderBeginChar, PlaceholderEndChar, FormatterOptionsBeginChar and FormatterOptionsEndChar now only have getters
  • Removed obsolete formatter.Parser.AddOperators("[]"); from the ListFormatter CTOR.

axunonb and others added 23 commits April 17, 2021 10:25
@axunonb axunonb merged commit 2009439 into axuno:version/v3.0 May 29, 2021
@axunonb axunonb deleted the constrain-custom-selectors-and-operators branch May 29, 2021 16:16
axunonb added a commit to axunonb/SmartFormat that referenced this pull request Mar 10, 2022
* Custom selector chars can be added, if not disallowed or in use as an operator char
* Custom operator chars can be added, if not disallowed or in use as a selector char
* Added corresponding unit tests
* Alphanumeric selector chars are the only option now and cannot be degraded to pure numeric chars
* `PlaceholderBeginChar`, `PlaceholderEndChar`, `FormatterOptionsBeginChar` and `FormatterOptionsEndChar` now only have getters
* Removed obsolete `formatter.Parser.AddOperators("[]");` from the `ListFormatter` CTOR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant