diff --git a/common/app/routes/challenges/utils.js b/common/app/routes/challenges/utils.js index c58dad00a0..29e65f2e36 100644 --- a/common/app/routes/challenges/utils.js +++ b/common/app/routes/challenges/utils.js @@ -90,7 +90,7 @@ function logReplacer(value) { const replaced = value.map(logReplacer); return '[' + replaced.join(', ') + ']'; } - if (typeof value === 'string' && !value.startsWith('//')) { + if (typeof value === 'string' && !(/^\/\//).test(value)) { return '"' + value + '"'; } if (typeof value === 'number' && isNaN(value)) {