From 28cd147ca03300337161de43df62eb0b3f4a5c07 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Thu, 12 Apr 2018 22:40:48 -0400 Subject: [PATCH] Fixing some syntax issues. It was late, I was tired, this was the result. --- app/assets/js/assetguard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js index ab22450..1c01956 100644 --- a/app/assets/js/assetguard.js +++ b/app/assets/js/assetguard.js @@ -624,9 +624,9 @@ class AssetGuard extends EventEmitter { const ret = {} let pts = verString.split('-') ret.build = parseInt(pts[1].substring(1)) - pts = verString[0].split('_') + pts = pts[0].split('_') ret.update = parseInt(pts[1]) - ret.major = parseInt(pts[0].split['.'][1]) + ret.major = parseInt(pts[0].split('.')[1]) return ret }