@@ -45,15 +45,15 @@ export function _cleanJoin(first: string, second: string) {
4545 * Now also supports Jira number e.g. '[ABCD-123] my description'.
4646 */
4747function _splitPrefixDesc ( value : string ) {
48- let prefix : string , description : string
48+ let prefix : string , description : string ;
4949
5050 if ( value . includes ( ":" ) ) {
51- [ prefix , description ] = value . split ( ":" , 2 )
51+ [ prefix , description ] = value . split ( ":" , 2 ) ;
5252 } else {
53- [ prefix , description ] = [ "" , value ]
53+ [ prefix , description ] = [ "" , value ] ;
5454 }
5555
56- return { prefix, description }
56+ return { prefix, description } ;
5757}
5858
5959/**
@@ -64,15 +64,15 @@ function _splitPrefixes(value: string) {
6464 ? value . split ( " " , 2 )
6565 : [ "" , value ] ;
6666
67- return { customPrefix, typePrefix }
67+ return { customPrefix, typePrefix } ;
6868}
6969
7070/**
7171 * Separate a message prefixs if any and the description.
7272 */
7373export function _splitMsg ( msg : string ) {
74- const { prefix, description } = _splitPrefixDesc ( msg )
75- const { customPrefix, typePrefix } = _splitPrefixes ( prefix )
74+ const { prefix, description } = _splitPrefixDesc ( msg ) ;
75+ const { customPrefix, typePrefix } = _splitPrefixes ( prefix ) ;
7676
7777 return { customPrefix, typePrefix, description : description . trim ( ) } ;
7878}
0 commit comments