diff --git a/modules/services/osmose.js b/modules/services/osmose.js index b7fc2d0ee..4997ddb2f 100644 --- a/modules/services/osmose.js +++ b/modules/services/osmose.js @@ -230,7 +230,7 @@ export default { // Cache served item colors to automatically style issue markers later const { item: itemInt, color } = item; - if (color.test(/^#[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}/)) { + if (/^#[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}/.test(color)) { _colorCache[itemInt] = color; } @@ -352,4 +352,4 @@ function jsonPromise(url, then) { reject(err); }); }); -} \ No newline at end of file +}