Skip to content

Commit

Permalink
Fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangzinh committed Nov 26, 2023
1 parent 745f12e commit bfe61c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/StringUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function removeInvisibleCharacters(value: string): string {
* @param value - The input string
* @returns The string with all CRLF replaced with LF
*/
function normalizeCRLF(value: string | null): string {
function normalizeCRLF(value?: string): string | undefined {
return value?.replace(/\r\n/g, '\n');
}

Expand Down

0 comments on commit bfe61c2

Please sign in to comment.