File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ var publish = function (_event, options) {
129129 _ . merge ( inputs , result ) ;
130130 // setting the default values
131131 inputs . type = inputs . type || "all" ;
132- inputs . language = inputs . language || "en-us" ;
132+ inputs . language = inputs . language . trim ( ) || "en-us" ;
133133 inputs . languages = ( inputs . language ) ? [ inputs . language ] || [ "en-us" ] : [ "en-us" ] ;
134134 if ( inputs . type === "assets" ) {
135135 delete inputs . content_types ;
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ Utility.prototype.inputs = {
199199 } ,
200200 conform : function ( input ) {
201201 var languages = config . get ( 'languages' ) ,
202- idx = _ . findIndex ( languages , { "code" : input } ) ;
202+ idx = _ . findIndex ( languages , { "code" : input . trim ( ) } ) ;
203203 return ( idx > - 1 ) ;
204204 }
205205 }
You can’t perform that action at this time.
0 commit comments