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 #45 from LWJerri/master
Browse files Browse the repository at this point in the history
Add `B0` & `X001` regexp for extractor
  • Loading branch information
LWJerri authored Jan 16, 2024
2 parents e3973a1 + 5488ecc commit 0ebca0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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.0.0",
"version": "2.1.0",
"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.0.0"
version = "2.1.0"
description = "An application for working with IDs of different types, designed to maximize productivity."
authors = ["LWJerri"]
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions src/components/custom/extractid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export function ExtractIdTab() {
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
"b0-code": { name: "B0 Code", regexp: new RegExp(/B0.{8}/gm) }, // B0BZHFLKC2,
"x001-code": { name: "X001 Code", regexp: new RegExp("/X001.{6}/gm") }, // X001ECK9T3
};

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

0 comments on commit 0ebca0a

Please sign in to comment.