feat: replace
This commit is contained in:
parent
657c814889
commit
e0d4661e87
|
|
@ -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, '\\]')
|
||||
|
|
|
|||
Loading…
Reference in New Issue