Skip to content

Commit e3aa9df

Browse files
Fix incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 0a0b274 commit e3aa9df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate-component-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function truncate(str, max) {
253253

254254
function escapePipe(str) {
255255
if (!str) return str
256-
return str.replace(/\|/g, '\\|')
256+
return str.replace(/\\/g, '\\\\').replace(/\|/g, '\\|')
257257
}
258258

259259
function renderTable(rows) {

0 commit comments

Comments
 (0)