Skip to content

Commit 4e4882e

Browse files
committed
fix: description escaping
1 parent 9d929f2 commit 4e4882e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/get-project-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function getProjectInfo(): Promise<ProjectInfo> {
1919
{
2020
name: 'library.description',
2121
message: 'Description:',
22-
filter: (s) => s.replaceAll('\\', '\\\\').replaceAll('"', '\\"').replace('\n', '\\n'),
22+
filter: (s: string) => s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n'),
2323
},
2424
{
2525
name: 'library.keywords',

0 commit comments

Comments
 (0)