mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix regexp ranges (#9977)
This commit is contained in:
		
							
								
								
									
										4
									
								
								scripts/update-locales.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								scripts/update-locales.sh
									
									
									
									
										vendored
									
									
								
							@@ -3,8 +3,8 @@
 | 
				
			|||||||
mv ./options/locale/locale_en-US.ini ./options/
 | 
					mv ./options/locale/locale_en-US.ini ./options/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Make sure to only change lines that have the translation enclosed between quotes
 | 
					# Make sure to only change lines that have the translation enclosed between quotes
 | 
				
			||||||
sed -i -r -e '/^[a-zA-Z0-9_-.]+[ ]*=[ ]*".*"$/ {
 | 
					sed -i -r -e '/^[a-zA-Z0-9_.-]+[ ]*=[ ]*".*"$/ {
 | 
				
			||||||
	s/^([a-zA-Z0-9_-.]+)[ ]*="/\1=/
 | 
						s/^([a-zA-Z0-9_.-]+)[ ]*="/\1=/
 | 
				
			||||||
	s/\\"/"/g
 | 
						s/\\"/"/g
 | 
				
			||||||
	s/"$//
 | 
						s/"$//
 | 
				
			||||||
	}' ./options/locale/*.ini
 | 
						}' ./options/locale/*.ini
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user