Fix RFC 5646 Regular Expression (#6190)
This commit is contained in:
		
							parent
							
								
									d872902997
								
							
						
					
					
						commit
						9a61b0ef22
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								app/javascript/mastodon/locales/whitelist_sr-Latn.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								app/javascript/mastodon/locales/whitelist_sr-Latn.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
[
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			@ -2,7 +2,7 @@ const fs = require('fs');
 | 
			
		|||
const path = require('path');
 | 
			
		||||
const { default: manageTranslations } = require('react-intl-translations-manager');
 | 
			
		||||
 | 
			
		||||
const RFC5646_REGEXP = /^[a-z]{2,3}(?:|-[A-Z]+)$/;
 | 
			
		||||
const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/;
 | 
			
		||||
 | 
			
		||||
const rootDirectory = path.resolve(__dirname, '..', '..');
 | 
			
		||||
const translationsDirectory = path.resolve(rootDirectory, 'app', 'javascript', 'mastodon', 'locales');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue