mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			128 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			128 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import re
 | 
						|
from unidecode import unidecode
 | 
						|
 | 
						|
 | 
						|
def to_const(string):
 | 
						|
    return re.sub(r"[\W|^]+", "_", unidecode(string)).upper()
 |