@iobroker/adapter-react-v5 7.4.4 → 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 CHANGED
@@ -13,7 +13,7 @@ If you want to create the configuration page with ReactJS:
13
13
  - Change `name` from `src` to `ADAPTERNAME-admin` (Of course replace `ADAPTERNAME` with yours)
14
14
  - Add to devDependencies:
15
15
  ```json
16
- "@iobroker/adapter-react-v5": "^7.4.4",
16
+ "@iobroker/adapter-react-v5": "^7.4.7",
17
17
  ```
18
18
  Versions can be higher.
19
19
  So your `src/package.json` should look like:
@@ -24,7 +24,7 @@ If you want to create the configuration page with ReactJS:
24
24
  "version": "0.1.0",
25
25
  "private": true,
26
26
  "dependencies": {
27
- "@iobroker/adapter-react-v5": "^7.4.4",
27
+ "@iobroker/adapter-react-v5": "^7.4.7",
28
28
  "@iobroker/build-tools": "^1.0.0",
29
29
  "babel-eslint": "^10.1.0",
30
30
  "react-scripts": "^5.0.1"
@@ -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\/?>|<b>[^<]+<\/b>|<i>[^<]+<\/i>/) : null;
678
- if (!m) {
679
- text && result.push(React.createElement("span", { key: `a${key++}` }, text));
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;