mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
Standard fixes
This commit is contained in:
@@ -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('&')
|
||||
|
||||
Reference in New Issue
Block a user