Update packages/mermaid/src/diagrams/git/gitGraphAst.ts

Co-authored-by: Sidharth Vinod <github@sidharth.dev>
This commit is contained in:
Austin-Fulbright 2024-07-27 04:04:16 -04:00 committed by GitHub
parent 6e5e5f9c61
commit 346efdd384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,9 +83,9 @@ export const getOptions = function () {
export const commit = function (msg: string, id: string, type: number, tags: string[] | undefined) {
log.info('commit', msg, id, type, tags);
log.debug('Entering commit:', msg, id, type, tags);
id = common.sanitizeText(id, getConfig());
msg = common.sanitizeText(msg, getConfig());
const config = getConfig();
id = common.sanitizeText(id, config);
msg = common.sanitizeText(msg, config);
tags = tags?.map((tag) => common.sanitizeText(tag, config));
const newCommit: Commit = {
id: id ? id : state.records.seq + '-' + getId(),