Skip to content

Commit 996c3b5

Browse files
update regex
1 parent ea19417 commit 996c3b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.vitepress/theme/components/Contributors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const nonExistent = ref<string[]>([])
3737
const parsedContributors = computed(() => {
3838
if (!body.value || !author.value) return []
3939
40-
const list = [...body.value.matchAll(/(?:^|\s|[^\w@])@([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,38}[a-zA-Z0-9])?)(?!\.[a-z]{2,})\b/g)]
40+
const list = [...body.value.matchAll(/@\[?([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,38}[a-zA-Z0-9])?)\]?/g)]
4141
.map(match => match[1].trim())
4242
const uncredited = author.value.includes('[bot]')
4343
? notMentioned.value

0 commit comments

Comments
 (0)