File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -611,13 +611,13 @@ class FedoraUpdateIndicator extends Button {
611611
612612 if ( proc . get_successful ( ) ) {
613613 for ( const line of stdout . split ( '\n' ) ) {
614- let nameMatch = line . match ( / ^ N a m e \s + : \s + ( . + ) $ / ) ;
614+ let nameMatch = line . match ( / ^ N a m e \s + : \s + ( [ ^ \r \n ] + ) $ / ) ;
615615 if ( nameMatch !== null ) {
616616 name = nameMatch [ 1 ] . trim ( ) ;
617617 continue ;
618618 }
619619
620- let sourceMatch = line . match ( / ^ S o u r c e \s + : \s + ( . + ? ) - \d / ) ;
620+ let sourceMatch = line . match ( / ^ S o u r c e \s + : \s + ( [ A - Z a - z 0 - 9 _ . + ] + (?: - [ A - Z a - z 0 - 9 _ . + ] + ) * ) - \d / ) ;
621621 if ( sourceMatch !== null ) {
622622 rootPackage = sourceMatch [ 1 ] . trim ( ) ;
623623 break ;
Original file line number Diff line number Diff line change 3232 padding : 1px 5px ;
3333}
3434
35+ /* NOSONAR */
3536.fedora-updates-menubutton > StIcon {
3637 icon-size : 16px ;
3738}
You can’t perform that action at this time.
0 commit comments