Skip to content

Conversation

@MihaZupan
Copy link
Member

No description provided.

@MihaZupan MihaZupan added this to the 11.0.0 milestone Jan 27, 2026
@MihaZupan MihaZupan self-assigned this Jan 27, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

_minLength = minLength;
_maxLength = maxLength;
_invalidChars = invalidCharacters;
_invalidChars = SearchValues.Create(invalidCharacters ?? string.Empty);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How frequently are these StringValidators created?

JsonWriterHelper.ValidateValue(utf8Value);

if (utf8Value.IndexOf(SingleLineCommentDelimiterUtf8) != -1)
if (utf8Value.IndexOf(SingleLineCommentDelimiterUtf8) >= 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Contains?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we don't have a Contains<T>(this ROS<T> span, ROS<T> value) helper yet, except for chars with the comparison type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants