diff --git a/projects/typescript-xmlrpc/src/lib/date_formatter.ts b/projects/typescript-xmlrpc/src/lib/date_formatter.ts index f951c43b..1a10fd6b 100644 --- a/projects/typescript-xmlrpc/src/lib/date_formatter.ts +++ b/projects/typescript-xmlrpc/src/lib/date_formatter.ts @@ -6,10 +6,11 @@ export class DateFormatter { /** * Regular Expression that dissects ISO 8601 formatted strings into an array of parts. */ - // eslint-disable-next-line max-len + /* eslint-disable max-len */ static ISO8601 = new RegExp( '([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?', ); + /* eslint-enable max-len */ colons = true; hyphens = false; diff --git a/projects/typescript-xmlrpc/src/lib/deserializer.ts b/projects/typescript-xmlrpc/src/lib/deserializer.ts index 4b79d784..f2f52511 100644 --- a/projects/typescript-xmlrpc/src/lib/deserializer.ts +++ b/projects/typescript-xmlrpc/src/lib/deserializer.ts @@ -236,10 +236,11 @@ function convertValue(element: Element): XmlRpcTypes { case 'array': return convertArray(valueChildren[0]); default: - // eslint-disable-next-line max-len + /* eslint-disable max-len */ throw Error( 'Tag name of the single child of value needs to be i4, int, boolean, string, double, dateTime.iso8607, base64, struct or array!', ); + /* eslint-enable max-len */ } }