in src/parsers/clause-parsers.ts [317:323]
private validateAndThen(regexTest: RegExp, value: string, parser: () => string): string {
if (!regexTest.test(value)) {
throw new Error(`The value '${value}' is not formatted properly for the OData datatype`);
}
return parser();
}