Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #363 from Financial-Times/fix-regex-matcher
Browse files Browse the repository at this point in the history
fix: regex matcher for SystemCodes
  • Loading branch information
bibbycodes authored May 24, 2021
2 parents d205e21 + 4d1f267 commit d8d7f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
simpleTypes: [...validEnums, ...primitiveTypeNames],
complexTypes: [...typeNames, ...relationshipTypeNames],
stringPatterns: Object.keys(stringPatterns),
SYSTEM_CODE: '^[a-z][\\-a-z]+[a-z]$',
SYSTEM_CODE: '^[a-z][a-z0-9-]+[a-z0-9]$',
TYPE_NAME: '^[A-Z][a-zA-Z]+$',
CAPITAL_SNAKE_CASE: '^(?=.{2,64}$)[A-Z][A-Z_]*[A-Z]$',
STRING_PATTERN_NAME: '^(?=.{2,64}$)[A-Z][A-Z\\d_]*[A-Z\\d]$',
Expand Down
2 changes: 1 addition & 1 deletion test-helpers/test-fixtures.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { DateTime } = require('neo4j-driver/lib/temporal-types.js');
const { DateTime } = require('neo4j-driver/lib/temporal-types');

const { driver } = require('./db-connection');

Expand Down

0 comments on commit d8d7f42

Please sign in to comment.