update regex for sendDeviceInfor
This commit is contained in:
parent
f4ec11f55e
commit
369a3b9c94
|
|
@ -176,7 +176,7 @@ export const checkIndexSN = async (content, beginLine, nameF) => {
|
|||
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2ludC5pcHN1cHBseS5jb20uYXUvYXBpL2xvZ2luIiwiaWF0IjoxNjg5ODYyNjAxLCJleHAiOjE3MjEzOTg2MDEsIm5iZiI6MTY4OTg2MjYwMSwianRpIjoiUElZVjNBM3ZPQVlMQ081SyIsInN1YiI6MSwicHJ2IjoiYzhlZTFmYzg5ZTc3NWVjNGM3Mzg2NjdlNWJlMTdhNTkwYjZkNDBmYyJ9.UcybIKMBjTAY9i0PfIDQMtqHyN72Ul0jC03ZDGLGpMI";
|
||||
|
||||
let data = {
|
||||
data: output.filter((i) => i.PID !== "" && i.PID.match(pattern)==null),
|
||||
data: output.filter((i) => i.PID !== "" && i.PID.match(pattern)===null),
|
||||
urlAPI: "/api/test-log-serial-number/save-data",
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -302,6 +302,8 @@ export const sendDeviceInfora = async () => {
|
|||
let specialModel = allKeyValue
|
||||
.filter((i) => i.key === "MODEL_SPECIAL")
|
||||
.map((obj) => obj.$attributes.value);
|
||||
let pattern = /[\x00-\x20\x7F]/g;
|
||||
listInformation = listInformation.filter((i)=>i.PID.match(pattern)===null)
|
||||
listInformation = listInformation.filter(
|
||||
(i) =>
|
||||
i.RAM !== "" ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue