@topconsultnpm/sdkui-react-beta 6.12.131 → 6.12.132

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.
@@ -18,7 +18,7 @@ const Wrapper = styled.div `
18
18
  }
19
19
  `;
20
20
  const convertLinksToAnchors = (markup) => {
21
- const urlRegex = /(?<!["'>])(https?:\/\/[^\s<]+)/g;
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.12.131",
3
+ "version": "6.12.132",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",