From c61526f8d51efe6a02d4196a1da5872986ec686e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 29 Oct 2016 09:55:55 +0200 Subject: [PATCH] Eslint fixes (package upgrade) (#2957) --- js/src/dapps/githubhint/Application/application.js | 2 +- js/src/modals/FirstRun/firstRun.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/dapps/githubhint/Application/application.js b/js/src/dapps/githubhint/Application/application.js index ea7e760c5..8eb3902d3 100644 --- a/js/src/dapps/githubhint/Application/application.js +++ b/js/src/dapps/githubhint/Application/application.js @@ -151,7 +151,7 @@ export default class Application extends Component { let urlError = null; if (url && url.length) { - var re = /^https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}/g; + const re = /^https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}/g; // eslint-disable-line urlError = re.test(url) ? null : 'not matching rexex'; diff --git a/js/src/modals/FirstRun/firstRun.js b/js/src/modals/FirstRun/firstRun.js index e5033f9e6..2ba8cbbe8 100644 --- a/js/src/modals/FirstRun/firstRun.js +++ b/js/src/modals/FirstRun/firstRun.js @@ -122,7 +122,7 @@ export default class FirstRun extends Component { icon={ } label='Close' onClick={ this.onClose } /> - ); + ); } }