Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/schoero/SwissQRBill
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Nov 25, 2021
2 parents 9bcf703 + 8178a05 commit 3123e47
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/shared/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ export function validateData(data: Data) {
if(data.av1 !== undefined){
if(data.av1.length > 100){ throw new Error("AV1 must be a maximum of 100 characters."); }
if(typeof data.av1 !== "string"){ throw new Error("AV1 must be a string."); }
if(data.av1.substr(0, 5) !== "eBill"){
throw new Error("AV1 must begin with eBill");
}
}


Expand All @@ -250,9 +247,6 @@ export function validateData(data: Data) {
if(data.av2 !== undefined){
if(data.av2.length > 100){ throw new Error("AV2 must be a maximum of 100 characters."); }
if(typeof data.av2 !== "string"){ throw new Error("AV2 must be a string."); }
if(data.av2.substr(0, 5) !== "eBill"){
throw new Error("AV2 must begin with eBill");
}
}

}

0 comments on commit 3123e47

Please sign in to comment.