mirror of
				https://github.com/walkxcode/dashboard-icons.git
				synced 2025-10-31 16:57:58 +01:00 
			
		
		
		
	feat: add issue_templates for creation of icons (#935)
Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
This commit is contained in:
		
							
								
								
									
										7
									
								
								scripts/common.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								scripts/common.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| import re | ||||
|  | ||||
| def convert_to_kebab_case(name: str) -> str: | ||||
|     """Convert a filename to kebab-case.""" | ||||
|     cleaned = re.sub(r'[^a-zA-Z0-9\s-]', '', name) | ||||
|     kebab_case_name = re.sub(r'[\s_]+', '-', cleaned).lower() | ||||
|     return kebab_case_name | ||||
		Reference in New Issue
	
	Block a user