File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ public static bool IsTextFile(CharSpan path)
29
29
var extension = Path . GetExtension ( path ) ;
30
30
return IsTextExtension ( extension ) ;
31
31
#else
32
- return IsTextExtension ( path . ToString ( ) ) ;
32
+ var extension = Path . GetExtension ( path . ToString ( ) ) ;
33
+ return IsTextExtension ( extension ) ;
33
34
#endif
34
35
}
35
36
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public void IsTextLegacy()
34
34
{
35
35
#pragma warning disable CS0618 // Type or member is obsolete
36
36
True ( FileExtensions . IsText ( "file.txt" ) ) ;
37
- True ( FileExtensions . IsText ( "c:/path/file.txtViaConvention" ) ) ;
38
37
False ( FileExtensions . IsText ( "file.bin" ) ) ;
39
38
True ( FileExtensions . IsText ( "c:/file.txt" ) ) ;
40
39
False ( FileExtensions . IsText ( "c:/file.bin" ) ) ;
You can’t perform that action at this time.
0 commit comments