Skip to content

Commit

Permalink
Avoid regexp related eslint error for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Jun 6, 2024
1 parent dba8941 commit b220bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/10-vcdm2.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ describe('Verifiable Credentials Data Model v2.0', function() {
'MUST be interpreted as UTC.', async function() {
// TODO: add test using regular expression from spec.
// https://w3c.github.io/vc-data-model/#example-regular-expression-to-detect-a-valid-xml-schema-1-1-part-2-datetimestamp
// eslint-disable-next-line max-len
const regexp = /-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))/
// eslint-disable-next-line max-len, no-unused-vars
const regexp = /-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))/;
});

// 4.9 Securing Mechanisms https://w3c.github.io/vc-data-model/#securing-mechanisms
Expand Down

0 comments on commit b220bc0

Please sign in to comment.