Skip to content

Commit

Permalink
fix: description escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbash committed Apr 11, 2021
1 parent 9d929f2 commit 4e4882e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-project-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function getProjectInfo(): Promise<ProjectInfo> {
{
name: 'library.description',
message: 'Description:',
filter: (s) => s.replaceAll('\\', '\\\\').replaceAll('"', '\\"').replace('\n', '\\n'),
filter: (s: string) => s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n'),
},
{
name: 'library.keywords',
Expand Down

0 comments on commit 4e4882e

Please sign in to comment.