Skip to content

Commit

Permalink
Merge pull request #25 from AgrI-Mitra/fix/url-translation-placeholder
Browse files Browse the repository at this point in the history
Better placeholder for URL translation
  • Loading branch information
kh4l1d64 authored Feb 29, 2024
2 parents 354c309 + c2d65f6 commit 45ee7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/aiTools/ai-tools.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class AiToolsService {
const urlRegex = /(https?:\/\/[^\s]+)|(www\.[^\s]+)/g;
const urls = text.match(urlRegex) || [];

const placeHolder = "9kBjf325" //placeholder which stays the same across languages after translation
const placeHolder = "9814567092798090023722437987555212294" //placeholder which stays the same across languages after translation
const textWithoutUrls = text.replace(urlRegex, placeHolder)
let config = {
"language": {
Expand Down

0 comments on commit 45ee7e1

Please sign in to comment.