Skip to content

Commit 116efd1

Browse files
committed
Escape HTML comment delimiters
1 parent d25a41c commit 116efd1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/scripts/track_fixmes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ for file in $(find bin dist docs tools etc examples lib test tools -type f); do
3434
fi
3535
lineNumber=$(echo $fixme | cut -d ":" -f 1)
3636
lineContent=$(awk "NR==$lineNumber" $file)
37+
lineContent=$(echo $lineContent | sed -e 's/<!--/\\<!--/g' -e 's/-->/\\-->/g')
3738
comment="$comment
3839
- [$file#L$lineNumber](https://github.com/stdlib-js/stdlib/blob/develop/$file#L$lineNumber): $lineContent"
3940
fi

.github/workflows/scripts/track_todos

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ for file in $(find bin dist docs tools etc examples lib test tools -type f); do
3434
fi
3535
lineNumber=$(echo $todo | cut -d ":" -f 1)
3636
lineContent=$(awk "NR==$lineNumber" $file)
37+
lineContent=$(echo $lineContent | sed -e 's/<!--/\\<!--/g' -e 's/-->/\\-->/g')
3738
comment="$comment
3839
- [$file#L$lineNumber](https://github.com/stdlib-js/stdlib/blob/develop/$file#L$lineNumber): $lineContent"
3940
fi

0 commit comments

Comments
 (0)