Fix regex and Fix incorrect test

This commit is contained in:
Justin Greywolf
2020-06-08 19:21:33 -07:00
parent ae6b75b62a
commit 0495103635
2 changed files with 4 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ export const drawClass = function(elem, classDef, conf) {
};
export const parseMember = function(text) {
const fieldRegEx = /^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)$/;
const fieldRegEx = /(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/;
const methodRegEx = /(\+|-|~|#)?(\w+)\((.*)\)(\*|\$)? *(.*)?/;
///^(\+|-|~|#)?(\w+)\((.*)\)(\*|\$)?[ ]*(.*)?$/;