From 71ea93036cd7e843cce0d1a704ae7d2ba61a9e9a Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Thu, 15 Jun 2023 17:57:06 +0200 Subject: [PATCH] fix: improve regex Related to https://github.com/bpmn-io/bpmn-js/security/code-scanning/1 --- lib/draw/BpmnRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/draw/BpmnRenderer.js b/lib/draw/BpmnRenderer.js index 95e380aa4d..7f284edc25 100644 --- a/lib/draw/BpmnRenderer.js +++ b/lib/draw/BpmnRenderer.js @@ -160,7 +160,7 @@ export default function BpmnRenderer( function colorEscape(str) { // only allow characters and numbers - return str.replace(/[^0-9a-zA-z]+/g, '_'); + return str.replace(/[^0-9a-zA-Z]+/g, '_'); } function marker(type, fill, stroke) {