Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Merge pull request #47 from LWJerri/master
Browse files Browse the repository at this point in the history
App improvements (`v2.1.1`)
  • Loading branch information
LWJerri authored Jan 16, 2024
2 parents e277c11 + b2fbc64 commit 1d408da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "findid",
"version": "2.1.0",
"version": "2.1.1",
"description": "An application for working with IDs of different types, designed to maximize productivity.",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "findid"
version = "2.1.0"
version = "2.1.1"
description = "An application for working with IDs of different types, designed to maximize productivity."
authors = ["LWJerri"]
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"center": true,
"minWidth": 448,
"minHeight": 533,
"title": "FindID - Working with various types of IDs",
"contentProtected": true
"title": "FindID - Working with various types of IDs"
}
],
"bundle": {
Expand Down
7 changes: 4 additions & 3 deletions src/components/custom/extractid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export function ExtractIdTab() {
const [extractedValues, setExtractedValues] = useState<Array<string>>([]);

const AVAILABLE_CHOICES: { [key: string]: { regexp: RegExp; name: string } } = {
"pod-location": { name: "Pod Location", regexp: new RegExp(/P-\d-\w\d{3}\w\d{3}/gm) }, // P-A123A123
container: { name: "Container", regexp: new RegExp(/tsX\w{8}/gm) }, //tsX12345678
"pod-location": { name: "Pod Location", regexp: new RegExp(/P-\d-\w\d{3}\w\d{3}/gm) }, // P-1-A123A123
container: { name: "tsX Code", regexp: new RegExp(/tsX\w{8}/gm) }, //tsX12345678
"b0-code": { name: "B0 Code", regexp: new RegExp(/B0.{8}/gm) }, // B0BZHFLKC2,
"x001-code": { name: "X001 Code", regexp: new RegExp("/X001.{6}/gm") }, // X001ECK9T3
"x001-code": { name: "X001 Code", regexp: new RegExp(/X001.{6}/gm) }, // X001ECK9T3
"dz-P-A": { name: "dzp-P-A Code", regexp: new RegExp(/dz-P-A\d{4}/gm) }, // dz-P-A1234
};

const extractValues = (value: string) => {
Expand Down

0 comments on commit 1d408da

Please sign in to comment.