From f6e4bf74cbdb7e36b00d3709f57d8a28ae7a57a2 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 16 Jan 2018 20:01:23 -0800 Subject: [PATCH] fix(boot/user): Use common encoding utils This logic is used through out the app and should be centralized --- server/boot/user.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/server/boot/user.js b/server/boot/user.js index 188ba56269..5e735f796b 100644 --- a/server/boot/user.js +++ b/server/boot/user.js @@ -27,6 +27,7 @@ import { calcLongestStreak } from '../utils/user-stats'; import supportedLanguages from '../../common/utils/supported-languages'; +import { encodeFcc } from '../../common/utils/encode-decode.js'; import { getChallengeInfo, cachedMap } from '../utils/map'; const debug = debugFactory('fcc:boot:user'); @@ -71,22 +72,6 @@ const certText = { const dateFormat = 'MMM DD, YYYY'; -function replaceScriptTags(value) { - return value - .replace(/