Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ordinal comparer for better performance
  • Loading branch information
DaniilSokolyuk committed Apr 8, 2018
commit 249a8bdfd9ad9f4a5476eb0530f2d52e0a68fe07
2 changes: 1 addition & 1 deletion src/React.Core/ReactComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace React
/// </summary>
public class ReactComponent : IReactComponent
{
private static readonly ConcurrentDictionary<string, bool> _componentNameValidCache = new ConcurrentDictionary<string, bool>();
private static readonly ConcurrentDictionary<string, bool> _componentNameValidCache = new ConcurrentDictionary<string, bool>(StringComparer.Ordinal);

/// <summary>
/// Regular expression used to validate JavaScript identifiers. Used to ensure component
Expand Down