We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70eebd5 commit 3e39d46Copy full SHA for 3e39d46
libraries/nestjs-libraries/src/integrations/social/linkedin.provider.ts
@@ -340,10 +340,12 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {
340
type === 'personal'
341
? `urn:li:person:${id}`
342
: `urn:li:organization:${id}`,
343
- commentary: removeMarkdown({
344
- text: firstPost.message.replace('\n', '𝔫𝔢𝔴𝔩𝔦𝔫𝔢'),
345
- except: [/@\[(.*?)]\(urn:li:organization:(\d+)\)/g],
346
- }).replace('𝔫𝔢𝔴𝔩𝔦𝔫𝔢', '\n'),
+ commentary: firstPost.message
+ .replace(/\*/g, '\\*')
+ .replace(/\(/g, '\\(')
+ .replace(/\)/g, '\\)')
347
+ .replace(/\{/g, '\\{')
348
+ .replace(/}/g, '\\}'),
349
visibility: 'PUBLIC',
350
distribution: {
351
feedDistribution: 'MAIN_FEED',
0 commit comments