mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-28 05:12:34 +00:00
product result parser test case fix
This commit is contained in:
@@ -49,8 +49,8 @@ pub fn parse(result: &RXingResult) -> Option<ParsedClientResult> {
|
|||||||
let normalizedProductID;
|
let normalizedProductID;
|
||||||
// Expand UPC-E for purposes of searching
|
// Expand UPC-E for purposes of searching
|
||||||
if format == &BarcodeFormat::UPC_E && rawText.len() == 8 {
|
if format == &BarcodeFormat::UPC_E && rawText.len() == 8 {
|
||||||
unimplemented!("UPCEReader is required to parse this");
|
// unimplemented!("UPCEReader is required to parse this");
|
||||||
//normalizedProductID = UPCEReader.convertUPCEtoUPCA(rawText);
|
normalizedProductID = crate::oned::convertUPCEtoUPCA(&rawText);
|
||||||
} else {
|
} else {
|
||||||
normalizedProductID = rawText.clone();
|
normalizedProductID = rawText.clone();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user