chore: fix regexp

This commit is contained in:
Xavier Stouder
2021-08-26 11:37:14 +02:00
parent 46a7039ae9
commit 8db827e429

View File

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