diff --git a/tools/src/prepare-for-vale/KeepDescriptions.ts b/tools/src/prepare-for-vale/KeepDescriptions.ts index e680da819..99d7207fe 100644 --- a/tools/src/prepare-for-vale/KeepDescriptions.ts +++ b/tools/src/prepare-for-vale/KeepDescriptions.ts @@ -45,7 +45,8 @@ export default class KeepDescriptions { } else if (inside_text && line.match(/^[\s]*[\w\\$]*:/)) { inside_text = false } else if (inside_text) { - fs.writeSync(writer, this.prune_vars(line)) + const cleanedLine = line.replace(/\[([^\]]+)\]\([^\)]+\)/g, '$1'); + fs.writeSync(writer, this.prune_vars(cleanedLine)); } if (line.length > 0) { fs.writeSync(writer, "\n")