mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Standard fixes
This commit is contained in:
parent
0478e4217b
commit
cf686c445c
@ -216,7 +216,7 @@ export const setLink = function (ids, linkStr, tooltip) {
|
||||
ids.split(',').forEach(function (id) {
|
||||
if (typeof vertices[id] !== 'undefined') {
|
||||
if (config.securityLevel === 'strict') {
|
||||
vertices[id].link = sanitizeUrl(linkStr) //.replace(/javascript:.*/g, '')
|
||||
vertices[id].link = sanitizeUrl(linkStr) // .replace(/javascript:.*/g, '')
|
||||
} else {
|
||||
vertices[id].link = linkStr
|
||||
}
|
||||
|
@ -1631,7 +1631,7 @@ describe('when parsing ', function () {
|
||||
})
|
||||
|
||||
it('it should be able to parse a \'=\'', function () {
|
||||
charTest('=')
|
||||
charTest('=','=')
|
||||
})
|
||||
it('it should be able to parse a \'&\'', function () {
|
||||
charTest('&')
|
||||
|
@ -504,7 +504,6 @@ const pushFun = function (id, callbackFunction) {
|
||||
// const elem = d3.select(element).select(`[id="${id}-text"]`)
|
||||
const elem = document.querySelector(`[id="${id}-text"]`)
|
||||
if (elem !== null) {
|
||||
|
||||
elem.addEventListener('click', function () {
|
||||
callbackFunction()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user