This adds back code that is in master and was in rel_3_6_1, but was
missing in rel_3_8_0.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
this.orgSettings[k] = settings[k].value;
}
- if(settings[SET_BARCODE_REGEX])
+ if(settings[SET_BARCODE_REGEX]) {
this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value);
+ } else {
+ this.patronBarcodeRegex = new RegExp(/^\d/);
+ // this assumes barcodes start with digits
+ }
// Subtract the timeout warning interval from the configured timeout
// so that when taken together they add up to the configured amount.