diff --git a/src/parser.ts b/src/parser.ts index e6a82ce..05fd1fd 100755 --- a/src/parser.ts +++ b/src/parser.ts @@ -539,7 +539,7 @@ function addDefaultValueToDescription(tag: Spec): Spec { let { description } = tag; // remove old note - description = description.replace(/[\s]*Default[\s]*is[\s]*`.*`\.?$/, ""); + description = description.replace(/(?:\s*Default\s+is\s+`.*?`\.?)+/g, ""); // add a `.` at the end of previous sentences if (description && !/[.\n]$/.test(description)) {