From 4e639f452c4e5344c45c70b8d31feb6b03e044a4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 26 Oct 2016 13:22:10 +0200 Subject: [PATCH] Fix warning detection. --- src/app/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/utils.js b/src/app/utils.js index 4189a2b89d..1abfeb1219 100644 --- a/src/app/utils.js +++ b/src/app/utils.js @@ -19,7 +19,7 @@ function fileNameFromKey (key) { } function errortype (message) { - return message.match(/^.*:[0-9]*:[0-9]* Warning: /) ? 'warning' : 'error' + return message.match(/^(.*:[0-9]*:[0-9]* )?Warning: /) ? 'warning' : 'error' } module.exports = {