From 5fb500a5cd4bd2f75ac020269b99b81b236d2f52 Mon Sep 17 00:00:00 2001 From: Andrey Lisin Date: Fri, 8 Mar 2019 21:55:25 +0300 Subject: [PATCH] Fix namespace regex --- src/cljParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cljParser.ts b/src/cljParser.ts index c0ee48b..48550ca 100644 --- a/src/cljParser.ts +++ b/src/cljParser.ts @@ -131,7 +131,7 @@ const containsValue = (map: Map, checkValue: any): boolean => { }; const getNamespace = (text: string): string => { - const m = text.match(/^[\s\t]*\((?:[\s\t\n]*(?:in-){0,1}ns)[\s\t\n]+'?([\w\-.]+)[\s\S]*\)[\s\S]*/); + const m = text.match(/^[;\s\t\n]*\((?:[\s\t\n]*(?:in-){0,1}ns)[\s\t\n]+'?([\w\-.]+)[\s\S]*\)[\s\S]*/); return m ? m[1] : 'user'; };