@@ -10,16 +10,16 @@ private class State;
1010
1111 private class UserAgentState : State ;
1212
13- private class AllowState( ReadOnlyMemory < byte > pattern , bool fastPath ) : State
13+ private class AllowState( ReadOnlyMemory < byte > pattern , bool isSimplePattern ) : State
1414 {
1515 public ReadOnlyMemory < byte > Pattern { get ; } = pattern ;
16- public bool FastPath { get ; } = fastPath ;
16+ public bool IsSimplePattern { get ; } = isSimplePattern ;
1717 }
1818
19- private class DisallowState ( ReadOnlyMemory < byte > pattern , bool fastPath ) : State
19+ private class DisallowState ( ReadOnlyMemory < byte > pattern , bool isSimplePattern ) : State
2020 {
2121 public ReadOnlyMemory < byte > Pattern { get ; } = pattern ;
22- public bool FastPath { get ; } = fastPath ;
22+ public bool IsSimplePattern { get ; } = isSimplePattern ;
2323 }
2424
2525 private readonly List < byte [ ] > _userAgents ;
@@ -216,10 +216,10 @@ private static (int, int) AssessAccessRules(byte[] path, List<State> states)
216216 switch ( state )
217217 {
218218 case AllowState allow :
219- allowHierarchy = Check ( path , allow . Pattern . Span , allow . FastPath , allowHierarchy ) ;
219+ allowHierarchy = Check ( path , allow . Pattern . Span , allow . IsSimplePattern , allowHierarchy ) ;
220220 break ;
221221 case DisallowState disallow :
222- disallowHierarchy = Check ( path , disallow . Pattern . Span , disallow . FastPath , disallowHierarchy ) ;
222+ disallowHierarchy = Check ( path , disallow . Pattern . Span , disallow . IsSimplePattern , disallowHierarchy ) ;
223223 break ;
224224 }
225225 }
@@ -229,9 +229,9 @@ private static (int, int) AssessAccessRules(byte[] path, List<State> states)
229229 private static readonly byte [ ] IndexHtmBytes = "/index.htm"u8 . ToArray ( ) ;
230230
231231 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
232- private static int Check ( byte [ ] path , ReadOnlySpan < byte > pattern , bool fastPath , int currentPriority )
232+ private static int Check ( byte [ ] path , ReadOnlySpan < byte > pattern , bool isSimplePattern , int currentPriority )
233233 {
234- var priority = LongestMatchRobotsMatchStrategy . MatchFast ( path , pattern , fastPath ) ;
234+ var priority = LongestMatchRobotsMatchStrategy . MatchFast ( path , pattern , isSimplePattern ) ;
235235 if ( priority < 0 ) return currentPriority ;
236236 if ( currentPriority < priority )
237237 {
0 commit comments