This commit is contained in:
Fatih Kadir Akın 2025-06-18 16:38:40 +03:00
parent c60d434a43
commit a9efb68d97
2 changed files with 4 additions and 2 deletions

View File

@ -374,7 +374,7 @@ class EmbedPreview {
}
highlightMentions(text) {
return text.replace(/@(\w+)/g, '<span class="mention">@$1</span>');
return text.replaceAll(/@(https?:\/\/[^\s]+.*?|\w+\.\w+|\w+)/g, '<span class="mention">@$1</span>');
}
capitalizeFirst(str) {

View File

@ -565,7 +565,9 @@ Can you help me refactor it to:
3. Add proper TypeScript types
4. Implement virtualization for better performance with large product lists
The component currently handles products display, filtering by category/price, sorting, and pagination all in one file. I want a cleaner architecture.`;
The component currently handles products display, filtering by category/price, sorting, and pagination all in one file. I want a cleaner architecture.
Please check the @https://tanstack.com/query/latest/docs/react/overview for data fetching best practices and consider if we should integrate it for product data management.`;
document.getElementById('designer-context').value = '@codebase, ProductList.tsx, components/, hooks/';
document.getElementById('designer-filetree').value =