@@ -78,14 +78,16 @@ module.exports = function (context, options) {
7878 * "talon_mgba_http" -> ["talon", "mgba", "http"]
7979 */
8080 function splitRepoName ( name ) {
81- return name
82- // Insert boundary before uppercase runs: "VoiceLauncher" -> "Voice Launcher"
83- . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, "$1 $2" )
84- // Split acronym from next word: "HTTPServer" -> "HTTP Server"
85- . replace ( / ( [ A - Z ] + ) ( [ A - Z ] [ a - z ] ) / g, "$1 $2" )
86- . split ( / [ - _ . \s ] + / )
87- . map ( ( w ) => w . toLowerCase ( ) )
88- . filter ( ( w ) => w . length > 2 ) ;
81+ return (
82+ name
83+ // Insert boundary before uppercase runs: "VoiceLauncher" -> "Voice Launcher"
84+ . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, "$1 $2" )
85+ // Split acronym from next word: "HTTPServer" -> "HTTP Server"
86+ . replace ( / ( [ A - Z ] + ) ( [ A - Z ] [ a - z ] ) / g, "$1 $2" )
87+ . split ( / [ - _ . \s ] + / )
88+ . map ( ( w ) => w . toLowerCase ( ) )
89+ . filter ( ( w ) => w . length > 2 )
90+ ) ;
8991 }
9092
9193 /**
@@ -101,7 +103,11 @@ module.exports = function (context, options) {
101103 ) ;
102104 for ( const word of words ) {
103105 const canonical = tagAliases [ word ] || word ;
104- if ( canonicalTags . has ( canonical ) && ! existingCanonical . has ( canonical ) && ! implicitTags . includes ( canonical ) ) {
106+ if (
107+ canonicalTags . has ( canonical ) &&
108+ ! existingCanonical . has ( canonical ) &&
109+ ! implicitTags . includes ( canonical )
110+ ) {
105111 repo . topics . push ( word ) ;
106112 existingCanonical . add ( canonical ) ;
107113 }
0 commit comments