We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea19417 commit 0120c4cCopy full SHA for 0120c4c
docs/.vitepress/theme/components/Contributors.vue
@@ -37,7 +37,12 @@ const nonExistent = ref<string[]>([])
37
const parsedContributors = computed(() => {
38
if (!body.value || !author.value) return []
39
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)]
+ const list = [...body.value.matchAll(/@\[?([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,38}[a-zA-Z0-9])?)\]?/g)]
41
+ .filter(match => {
42
+ const start = match.index ?? 0
43
+ const before = body.value[start - 1] || ''
44
+ return !/[a-zA-Z0-9._%+-]/.test(before)
45
+ })
46
.map(match => match[1].trim())
47
const uncredited = author.value.includes('[bot]')
48
? notMentioned.value
0 commit comments