@iobroker/adapter-react-v5 7.4.3 → 7.4.7
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.
- package/README.md +2 -2
- package/build/Components/IconDeviceType.d.ts +1 -1
- package/build/Components/IconDeviceType.js +5 -1
- package/build/Components/IconDeviceType.js.map +1 -1
- package/build/Components/ObjectBrowser.js +1 -1
- package/build/Components/ObjectBrowser.js.map +1 -1
- package/build/Components/Utils.js +4 -3
- package/build/Components/Utils.js.map +1 -1
- package/build/LegacyConnection.d.ts +1 -1
- package/build/LegacyConnection.js +1 -2
- package/build/LegacyConnection.js.map +1 -1
- package/build/i18n/de.json +1 -1
- package/build/i18n/en.json +1 -0
- package/i18n/de.json +2 -2
- package/i18n/en.json +2 -1
- package/package.json +7 -7
|
@@ -674,9 +674,10 @@ export class Utils {
|
|
|
674
674
|
// eslint-disable-next-line react/jsx-no-target-blank
|
|
675
675
|
React.createElement("a", { key: `a${key++}`, href: href ? href[1] : '', target: target ? target[1] : '_blank', rel: rel ? rel[1] : 'noreferrer', style: { color: 'inherit' } }, title ? title[1] : ''));
|
|
676
676
|
}
|
|
677
|
-
m = text ? text.match(/<a [^<]+<\/a>|<br
|
|
678
|
-
if (!m) {
|
|
679
|
-
|
|
677
|
+
m = text ? text.match(/<a [^<]+<\/a>|<br\s?\/?>|<b>[^<]+<\/b>|<i>[^<]+<\/i>/) : null;
|
|
678
|
+
if (!m && text) {
|
|
679
|
+
// put the rest text
|
|
680
|
+
result.push(React.createElement("span", { key: `a${key++}` }, text));
|
|
680
681
|
}
|
|
681
682
|
} while (m);
|
|
682
683
|
return result;
|