Remove escape inside regex for StandardJS

This commit is contained in:
Jim Yang 2019-04-18 18:38:33 +01:00 committed by GitHub
parent 96516d6dd5
commit b2c833b879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export const addVertices = function (vert, g) {
} else {
const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text')
const rows = verticeText.split(/<br[\/]{0,1}>/)
const rows = verticeText.split(/<br[/]{0,1}>/)
for (let j = 0; j < rows.length; j++) {
const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan')