Skip to content

Commit 10ee320

Browse files
committed
Добавляет возможность использовать профиль без ссылки
1 parent 0bc4282 commit 10ee320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/person.11tydata.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ module.exports = {
3939
behanceId: function (data) {
4040
const { person } = data
4141
const pattern = new RegExp('^(http|https)://(www.)?behance.net/')
42-
return person.data.url.replace(pattern, '')
42+
return person.data.url?.replace(pattern, '')
4343
},
4444

4545
twitterId: function (data) {
4646
const { person } = data
4747
const pattern = new RegExp('^(http|https)://(www.)?twitter.com/')
48-
return person.data.url.replace(pattern, '')
48+
return person.data.url?.replace(pattern, '')
4949
},
5050

5151
telegramId: function (data) {
5252
const { person } = data
5353
const pattern = new RegExp('^(http|https)://(www.)?t.me/')
54-
return person.data.url.replace(pattern, '')
54+
return person.data.url?.replace(pattern, '')
5555
},
5656

5757
badges: function (data) {

0 commit comments

Comments
 (0)