mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Update packages/mermaid/src/diagrams/git/gitGraphAst.ts
Co-authored-by: Sidharth Vinod <github@sidharth.dev>
This commit is contained in:
parent
6e5e5f9c61
commit
346efdd384
@ -83,9 +83,9 @@ export const getOptions = function () {
|
|||||||
export const commit = function (msg: string, id: string, type: number, tags: string[] | undefined) {
|
export const commit = function (msg: string, id: string, type: number, tags: string[] | undefined) {
|
||||||
log.info('commit', msg, id, type, tags);
|
log.info('commit', msg, id, type, tags);
|
||||||
log.debug('Entering 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();
|
const config = getConfig();
|
||||||
|
id = common.sanitizeText(id, config);
|
||||||
|
msg = common.sanitizeText(msg, config);
|
||||||
tags = tags?.map((tag) => common.sanitizeText(tag, config));
|
tags = tags?.map((tag) => common.sanitizeText(tag, config));
|
||||||
const newCommit: Commit = {
|
const newCommit: Commit = {
|
||||||
id: id ? id : state.records.seq + '-' + getId(),
|
id: id ? id : state.records.seq + '-' + getId(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user