File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ function fuzzyMatches(
3131
3232  const  normalizedText  =  normalizer ( textToMatch ) 
3333
34-   if  ( typeof  matcher  ===  'string' )  { 
35-     return  normalizedText . toLowerCase ( ) . includes ( matcher . toLowerCase ( ) ) 
34+   if  ( typeof  matcher  ===  'string'  ||  typeof  matcher  ===  'number' )  { 
35+     return  normalizedText 
36+       . toLowerCase ( ) 
37+       . includes ( matcher . toString ( ) . toLowerCase ( ) ) 
3638  }  else  if  ( typeof  matcher  ===  'function' )  { 
3739    return  matcher ( normalizedText ,  node ) 
3840  }  else  { 
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export type MatcherFunction = (
66  content : string , 
77  element : Nullish < Element > , 
88)  =>  boolean 
9- export  type  Matcher  =  MatcherFunction  |  RegExp  |  string 
9+ export  type  Matcher  =  MatcherFunction  |  RegExp  |  string   |   number 
1010
1111// Get autocomplete for ARIARole union types, while still supporting another string 
1212// Ref: https://github.com/microsoft/TypeScript/issues/29729#issuecomment-505826972 
Original file line number Diff line number Diff line change 11{
2-   "extends" : " ../tsconfig.json" 
2+   "extends" : " ../tsconfig.json"  ,
3+   "compilerOptions" : {
4+     "baseUrl" : " ."  ,
5+     "paths" : {"@testing-library/dom" : [" ."  ]}
6+   }
37}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments