Skip to content

Commit 5fb500a

Browse files
committed
Fix namespace regex
1 parent b31ce99 commit 5fb500a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cljParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const containsValue = (map: Map<any, any>, checkValue: any): boolean => {
131131
};
132132

133133
const getNamespace = (text: string): string => {
134-
const m = text.match(/^[\s\t]*\((?:[\s\t\n]*(?:in-){0,1}ns)[\s\t\n]+'?([\w\-.]+)[\s\S]*\)[\s\S]*/);
134+
const m = text.match(/^[;\s\t\n]*\((?:[\s\t\n]*(?:in-){0,1}ns)[\s\t\n]+'?([\w\-.]+)[\s\S]*\)[\s\S]*/);
135135
return m ? m[1] : 'user';
136136
};
137137

0 commit comments

Comments
 (0)