Skip to content

Commit

Permalink
chore: update pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
meabed committed Jan 3, 2024
1 parent 366ea6b commit 84e2678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ const codeData: Record<string, Document> = {}
*/
function getCode(dataPath: string, nationalNumber: string) {
try {
//
if (!codeData[dataPath]) {
const bData = readFileSync(dataPath)
codeData[dataPath] = deserialize(bData)
}
//
const data = codeData[dataPath]
let prefix = nationalNumber
// Find the longest match
Expand Down

0 comments on commit 84e2678

Please sign in to comment.