@@ -197,7 +197,8 @@ const normId = (id: string): string => (id || '')
197197 . replaceAll ( 'ä' , 'ae' ) . replaceAll ( 'ö' , 'oe' ) . replaceAll ( 'ü' , 'ue' )
198198 . replaceAll ( 'Ä' , 'AE' ) . replaceAll ( 'Ö' , 'OE' ) . replaceAll ( 'Ü' , 'UE' )
199199 . replaceAll ( '²' , '2' ) . replaceAll ( '³' , '3' )
200- . replaceAll ( / [ ^ a - z A - Z 0 - 9 _ ] / g, '_' ) . replace ( / ^ ( [ 0 - 9 ] ) / , '_$1' ) ;
200+ . replaceAll ( / [ ^ a - z A - Z 0 - 9 _ ] / g, '_' ) . replace ( / ^ ( [ 0 - 9 ] ) / , '_$1' )
201+ . replaceAll ( / _ _ + / g, '_' ) . replace ( / ^ ( .+ ) _ $ / , '$1' ) ;
201202const normType = ( t : string ) : string => {
202203 const parts = t . split ( ':' ) ;
203204 parts [ 0 ] = normId ( parts [ 0 ] ) ;
@@ -789,7 +790,7 @@ const messageTrans: Trans<MessageLine> = (location, wholeLine, header, additions
789790 ? direction ( dirs [ 0 ] ) // single model
790791 : `@inherit(${ dirs . map ( d => additions . renamedDefaults [ d ] || ( d + getSuffix ( d , additions . defaultsByName ) ) ) . join ( ', ' ) } )` , // multi model
791792 auth && `@auth("${ auth } ")` || ( poll . length ?`@poll(${ poll [ 0 ] } )` :undefined ) ,
792- line [ 4 ] && `@qq(${ fromHex ( line [ 4 ] ) . join } )` ,
793+ line [ 4 ] && `@qq(${ fromHex ( line [ 4 ] ) . join ( '' ) } )` ,
793794 zz && `@zz(${ zz === '0xfe' ?'BROADCAST' :zz } )` ,
794795 single && idComb . length >= 2
795796 ? `@${ isDefault ?'base' :'id' } (${ idComb . join ( ', ' ) } )`
0 commit comments