Skip to content

Commit e802e88

Browse files
committed
Optimize tab name detection (sheepzh#294)
1 parent 501ed98 commit e802e88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/site.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
const SEPARATORS = /[-\|_:]/
99

10-
const INVALID_SITE_NAME = /()|()|()|()|()/
10+
const INVALID_SITE_NAME = /()|()|()|()|()|(Welcome)/
1111

1212
const SPECIAL_MAP = {
1313
// 哔哩哔哩 (゜-゜)つロ 干杯~-bilibili
@@ -16,7 +16,7 @@ const SPECIAL_MAP = {
1616

1717
/**
1818
* Extract the site name from the title of tab
19-
*
19+
*
2020
* @param title title
2121
* @returns siteName, undefined if disable to detect
2222
* @since 0.5.1
@@ -38,7 +38,7 @@ export function extractSiteName(title: string, host?: string) {
3838

3939
/**
4040
* Generate the label text with host and name
41-
*
41+
*
4242
* @since 1.1.8
4343
*/
4444
export function generateSiteLabel(host: string, name?: string): string {

0 commit comments

Comments
 (0)