From 48dcb4acbf697406e607fa12f75535fcac838228 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 10 Feb 2022 15:11:04 +0000 Subject: [PATCH] 2.5.44: allowing for the * symbol to be used on the device search bar --- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/components/DeviceSearchBar/index.js | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca8a276..26858e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.5.43", + "version": "2.5.44", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.5.43", + "version": "2.5.44", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -33,7 +33,7 @@ "react-tooltip": "^4.2.21", "react-widgets": "^5.1.1", "sass": "^1.35.1", - "ucentral-libs": "^1.0.59", + "ucentral-libs": "^1.0.60", "uuid": "^8.3.2" }, "devDependencies": { @@ -13333,9 +13333,9 @@ } }, "node_modules/ucentral-libs": { - "version": "1.0.59", - "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.59.tgz", - "integrity": "sha512-QtfJmHLmQRfRIMYttjAS4JpyPsbf9KVCZd1kn9VC7/j5K9EaZlzCLgZkAPTqW76EvQzvitmkXU4B0WWaHhflrg==", + "version": "1.0.60", + "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.60.tgz", + "integrity": "sha512-PRw2QTcbnHdrA8rPQhREI1FOKyuZUt48H3KcSGQgHpik2Ni+0una7jRfMFXwOU9yHzxQAlYG0EWLrzBnrKRvGA==", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -24860,9 +24860,9 @@ } }, "ucentral-libs": { - "version": "1.0.59", - "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.59.tgz", - "integrity": "sha512-QtfJmHLmQRfRIMYttjAS4JpyPsbf9KVCZd1kn9VC7/j5K9EaZlzCLgZkAPTqW76EvQzvitmkXU4B0WWaHhflrg==", + "version": "1.0.60", + "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.60.tgz", + "integrity": "sha512-PRw2QTcbnHdrA8rPQhREI1FOKyuZUt48H3KcSGQgHpik2Ni+0una7jRfMFXwOU9yHzxQAlYG0EWLrzBnrKRvGA==", "requires": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", diff --git a/package.json b/package.json index a7d98d2..813dbef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.5.43", + "version": "2.5.44", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -27,7 +27,7 @@ "react-tooltip": "^4.2.21", "react-widgets": "^5.1.1", "sass": "^1.35.1", - "ucentral-libs": "^1.0.59", + "ucentral-libs": "^1.0.60", "uuid": "^8.3.2" }, "main": "index.js", diff --git a/src/components/DeviceSearchBar/index.js b/src/components/DeviceSearchBar/index.js index ea2c86b..cc4bb62 100644 --- a/src/components/DeviceSearchBar/index.js +++ b/src/components/DeviceSearchBar/index.js @@ -15,7 +15,7 @@ const DeviceSearchBar = ({ action }) => { const search = (value) => { if (socket.readyState === WebSocket.OPEN) { - if (value.length > 0 && value.match('^[a-fA-F0-9]+$')) { + if (value.length > 1 && value.match('^[a-fA-F0-9-*]+$')) { setWaitingSearch(''); socket.send( JSON.stringify({ command: 'serial_number_search', serial_prefix: value.toLowerCase() }),