mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Should also support upper-case README files (#20581)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -58,6 +58,16 @@ func TestMisc_IsReadmeFile(t *testing.T) {
 | 
			
		||||
			expected: true,
 | 
			
		||||
			idx:      0,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			name:     "README.md",
 | 
			
		||||
			expected: true,
 | 
			
		||||
			idx:      0,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			name:     "ReAdMe.Md",
 | 
			
		||||
			expected: true,
 | 
			
		||||
			idx:      0,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			name:     "readme.txt",
 | 
			
		||||
			expected: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user