Skip to content

Commit

Permalink
fix: improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jun 15, 2023
1 parent 9fb2dae commit 71ea930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draw/BpmnRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 71ea930

Please sign in to comment.