fix: allow dot in entity name; fixes #1895

This commit is contained in:
Yash-Singh1
2022-05-10 18:39:11 -07:00
parent af4c0591f9
commit 32a2e5fc47
2 changed files with 7 additions and 0 deletions

View File

@@ -426,4 +426,10 @@ describe('when parsing ER diagram it...', function () {
const rels = erDb.getRelationships();
expect(rels[0].roleA).toBe('places');
});
it('should allow an entity name with a dot', function () {
erDiagram.parser.parse('erDiagram\nCUSTOMER.PROP ||--|{ ORDER : places');
const rels = erDb.getRelationships();
expect(rels[0].entityA).toBe('CUSTOMER.PROP');
});
});