Skip to content

Commit

Permalink
Fix namespace regex
Browse files Browse the repository at this point in the history
  • Loading branch information
avli committed Mar 8, 2019
1 parent b31ce99 commit 5fb500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const containsValue = (map: Map<any, any>, 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';
};

Expand Down

0 comments on commit 5fb500a

Please sign in to comment.