Skip to content

Commit

Permalink
fix: improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac authored Jun 15, 2023
1 parent 8e7a2b8 commit 1fd63ca
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 1fd63ca

Please sign in to comment.