mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-04 10:16:34 +00:00
hotfix(ci): preserve literal snippet indentation in ai review comments
This commit is contained in:
@@ -47,9 +47,15 @@ function cleanText(value) {
|
||||
}
|
||||
|
||||
function cleanMultilineText(value) {
|
||||
return typeof value === 'string'
|
||||
? value.trim().replace(/\r\n/g, '\n').replace(/\r/g, '\n')
|
||||
: '';
|
||||
if (typeof value !== 'string') {
|
||||
return '';
|
||||
}
|
||||
|
||||
return value
|
||||
.replace(/\r\n/g, '\n')
|
||||
.replace(/\r/g, '\n')
|
||||
.replace(/^\n+/u, '')
|
||||
.replace(/\n+$/u, '');
|
||||
}
|
||||
|
||||
function escapeMarkdown(value) {
|
||||
|
||||
Reference in New Issue
Block a user