4
									
								
								abra
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								abra
									
									
									
									
									
								
							@ -755,6 +755,10 @@ sub_app_new (){
 | 
			
		||||
    #   TYPE=custom-html, DOMAIN=foo.bar-baz.com
 | 
			
		||||
    #   -> custom_html_foo_bar_baz_com
 | 
			
		||||
    DEFAULT_NAME="${TYPE/-/_}_${DOMAIN//+([.-])/_}"
 | 
			
		||||
    # truncate to 45 chars (see below)
 | 
			
		||||
    DEFAULT_NAME="${DEFAULT_NAME:0:45}"
 | 
			
		||||
    # and remove trailing _
 | 
			
		||||
    DEFAULT_NAME="${DEFAULT_NAME%%_}"
 | 
			
		||||
    read -rp "App name [$DEFAULT_NAME]: " APP_NAME
 | 
			
		||||
    if [ -z "$APP_NAME" ]; then
 | 
			
		||||
      APP_NAME="$DEFAULT_NAME"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user