From 460dfd1eb65cff2935fae460a6c71b0171b226c7 Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Tue, 24 Apr 2018 13:29:51 +0200 Subject: Fix const regex Fixes an issue where const wasn't properly detected when using destructering. --- testLib/constModule.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testLib/constModule.js') diff --git a/testLib/constModule.js b/testLib/constModule.js index efff495..360a0f5 100644 --- a/testLib/constModule.js +++ b/testLib/constModule.js @@ -9,6 +9,7 @@ const g = "g"; const/*wtf this is valid*/h = "h"; const /*and this is also*/i = "i"; +const{k} = {k: "k"}; exports.a = function () { return a; @@ -40,3 +41,6 @@ exports.i = function () { exports.j = function () { return j; }; +exports.k = function () { + return k; +}; -- cgit v1.2.3