node-red-contrib-web-worldmap 2.21.5 → 2.21.6

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
- - v2.21.5 - Fix handling of "old" sjip nav to ship navigat
3
+ - v2.21.5 - Fix handling of "old" ship nav to ship navigation
4
4
  - v2.21.4 - Fix speed leader length. Add transparentPixels option.
5
5
  - v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels.
6
6
  - v2.21.2 - Expand ship nav to ship navigation.
package/README.md CHANGED
@@ -11,7 +11,7 @@ map web page for plotting "things" on.
11
11
 
12
12
  ### Updates
13
13
 
14
- - v2.21.5 - Fix handling of "old" sjip nav to ship navigation
14
+ - v2.21.5 - Fix handling of "old" ship nav to ship navigation
15
15
  - v2.21.4 - Fix speed leader length. Add transparentPixels option..
16
16
  - v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels.
17
17
  - v2.21.2 - Expand ship nav to ship navigation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.21.5",
3
+ "version": "2.21.6",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
@@ -1783,8 +1783,9 @@ function setMarker(data) {
1783
1783
  opts.size = opts.size || sz;
1784
1784
  opts.size = opts.size * (opts.scale || 1);
1785
1785
  // escape out any isocodes eg flag symbols
1786
- var optfields = ["additionalInformation","higherFormation","specialHeadquarters","staffComments","type","uniqueDesignation","speed"];
1787
- const regex = /\p{Extended_Pictographic}/ug;
1786
+ var optfields = ["additionalInformation","higherFormation","specialHeadquarters","staffComments","type","uniqueDesignation","speed","country"];
1787
+ //const regex = /\p{Extended_Pictographic}/ug;
1788
+ const regex = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/gi;
1788
1789
  optfields.forEach(function (item) {
1789
1790
  if (opts.hasOwnProperty(item) && regex.test(opts[item])) {
1790
1791
  opts[item] = unescape(encodeURIComponent(opts[item]));