From 006e89697dd5165f355afc20fc6bb0cdfa7b381a Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 12 Feb 2020 21:08:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/helpers/avatar_helper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/assets') diff --git a/app/assets/javascripts/helpers/avatar_helper.js b/app/assets/javascripts/helpers/avatar_helper.js index 35ac7b2629c..7891b44dd27 100644 --- a/app/assets/javascripts/helpers/avatar_helper.js +++ b/app/assets/javascripts/helpers/avatar_helper.js @@ -1,4 +1,4 @@ -import _ from 'underscore'; +import { escape } from 'lodash'; import { getFirstCharacterCapitalized } from '~/lib/utils/text_utility'; export const DEFAULT_SIZE_CLASS = 's40'; @@ -19,7 +19,7 @@ export function renderIdenticon(entity, options = {}) { const bgClass = getIdenticonBackgroundClass(entity.id); const title = getIdenticonTitle(entity.name); - return `
${_.escape( + return `
${escape( title, )}
`; } @@ -31,5 +31,5 @@ export function renderAvatar(entity, options = {}) { const { sizeClass = DEFAULT_SIZE_CLASS } = options; - return ``; + return ``; } -- cgit v1.2.3