feat: replace

This commit is contained in:
Nevo David 2024-12-20 22:34:56 +07:00
parent 657c814889
commit e0d4661e87
1 changed files with 1 additions and 1 deletions

View File

@ -287,12 +287,12 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {
const splitAll = text.split(pattern);
const splitTextReformat = splitAll.map((p) => {
return p
.replace(/\\/g, '\\\\')
.replace(/</g, '\\<')
.replace(/>/g, '\\>')
.replace(/#/g, '\\#')
.replace(/~/g, '\\~')
.replace(/_/g, '\\_')
.replace(/\\/g, '\\\\')
.replace(/\|/g, '\\|')
.replace(/\[/g, '\\[')
.replace(/]/g, '\\]')