mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	
						commit
						43c4e3aab8
					
				| 
						 | 
					@ -57,6 +57,6 @@ def format_suffix_patterns(urlpatterns, suffix_required=False, allowed=None):
 | 
				
			||||||
            allowed_pattern = '(%s)' % '|'.join(allowed)
 | 
					            allowed_pattern = '(%s)' % '|'.join(allowed)
 | 
				
			||||||
        suffix_pattern = r'\.(?P<%s>%s)$' % (suffix_kwarg, allowed_pattern)
 | 
					        suffix_pattern = r'\.(?P<%s>%s)$' % (suffix_kwarg, allowed_pattern)
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        suffix_pattern = r'\.(?P<%s>[a-z]+)$' % suffix_kwarg
 | 
					        suffix_pattern = r'\.(?P<%s>[a-z0-9]+)$' % suffix_kwarg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required)
 | 
					    return apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user