Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Commit

Permalink
Fix a possible issue with items in pasted contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Jan 2, 2017
1 parent fe58c14 commit 3903f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/item-estimator/parse-item-line.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AmountNameRegexList: RegExp[] = [
CargoScannerRegex
];

const ContractRegex = new RegExp('^' + ItemNamePart + SeperatorPart + NumberPart + SeperatorPart + ItemNamePart + SeperatorPart + ItemNamePart + '(?:' + SeperatorPart + ItemNamePart + ')' + '$'); // not perfect but it works for the name/ amount detection
const ContractRegex = new RegExp('^' + ItemNamePart + SeperatorPart + NumberPart + SeperatorPart + ItemNamePart + SeperatorPart + ItemNamePart + '(?:' + SeperatorPart + ItemNamePart + ')?' + '$'); // not perfect but it works for the name/ amount detection
const InventoryRegex = new RegExp('^' + ItemNamePart + SeperatorPart + NumberPart + SeperatorPart + ItemNamePart + SeperatorPart + PossibleSingleWordPart + PossibleSingleWordPart + FractionNumberPart + ' m3' + '$');
const ItemInfoReprocessedMaterialsRegex = new RegExp('^' + ItemNamePart + SeperatorPart + '\\(' + NumberPart + ' Units?\\)' + '$');
const ShipFittingChargesRegex = new RegExp('^' + ItemNamePart + ' x' + NumberPart + '$');
Expand Down

0 comments on commit 3903f5e

Please sign in to comment.