@topconsultnpm/sdkui-react-beta 6.12.131 → 6.12.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,12 +103,12 @@ const TMFileManager = (props) => {
|
|
103
103
|
const filterItems = () => {
|
104
104
|
const folderItems = selectedFolder?.items ?? [];
|
105
105
|
const filtered = folderItems.filter(item => !item.isDirectory &&
|
106
|
-
((item.id?.toString()?.includes(searchText.toLowerCase())) ||
|
107
|
-
(item.name?.toLowerCase()?.includes(searchText.toLowerCase())) ||
|
108
|
-
(item.description?.toLowerCase()?.includes(searchText.toLowerCase())) ||
|
109
|
-
(item.ext?.toString().includes(searchText)) ||
|
110
|
-
(item.size?.toString().includes(searchText)) ||
|
111
|
-
(item.version?.toString().includes(searchText))));
|
106
|
+
((item.id?.toString()?.includes(searchText.toLowerCase().trim())) ||
|
107
|
+
(item.name?.toLowerCase()?.includes(searchText.toLowerCase().trim())) ||
|
108
|
+
(item.description?.toLowerCase()?.includes(searchText.toLowerCase().trim())) ||
|
109
|
+
(item.ext?.toString().includes(searchText.toLowerCase().trim())) ||
|
110
|
+
(item.size?.toString().includes(searchText.toLowerCase().trim())) ||
|
111
|
+
(item.version?.toString().includes(searchText.toLowerCase().trim()))));
|
112
112
|
setFilteredFileItems(filtered);
|
113
113
|
};
|
114
114
|
filterItems();
|
@@ -18,7 +18,7 @@ const Wrapper = styled.div `
|
|
18
18
|
}
|
19
19
|
`;
|
20
20
|
const convertLinksToAnchors = (markup) => {
|
21
|
-
const urlRegex = /(?<!["'
|
21
|
+
const urlRegex = /(?<!href=["'])(https?:\/\/[^\s"'<>]+[^\s"'<>.,;:!?)])/g;
|
22
22
|
return markup.replace(urlRegex, (url) => {
|
23
23
|
return `<a href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`;
|
24
24
|
});
|
@@ -13,6 +13,10 @@ const sampleMarkup = `
|
|
13
13
|
<li>Ordered item <em>two</em> with a sample word</li>
|
14
14
|
</ol>
|
15
15
|
<p>Check out this URL: https://www.example.com</p>
|
16
|
+
<p>Check out this URL: https://www.illibraio.it/test-quiz/test/</p>
|
17
|
+
<p>Check out this URL: http://www.illibraio.it/test-quiz/test/</p>
|
18
|
+
<p>Check out this URL: https://www.topconsult.it/it</p>
|
19
|
+
|
16
20
|
`;
|
17
21
|
const meta = {
|
18
22
|
title: 'Components/TMHtmlContentDisplay',
|