Skip to content

Commit

Permalink
ignoring hyperlinks in descriptions for vale
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 22, 2024
1 parent a2afe56 commit f086de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/src/prepare-for-vale/KeepDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check failure on line 48 in tools/src/prepare-for-vale/KeepDescriptions.ts

View workflow job for this annotation

GitHub Actions / lint

Variable name `cleanedLine` must match one of the following formats: snake_case, UPPER_CASE

Check failure on line 48 in tools/src/prepare-for-vale/KeepDescriptions.ts

View workflow job for this annotation

GitHub Actions / lint

Unnecessary escape character: \)
fs.writeSync(writer, this.prune_vars(cleanedLine));
}
if (line.length > 0) {
fs.writeSync(writer, "\n")
Expand Down

0 comments on commit f086de5

Please sign in to comment.