zz85 / kafka-streams-viz

Kafka Streams Topology Sketch Diagram Visualization
https://zz85.github.io/kafka-streams-viz
412 stars 84 forks source link

Prevent regex greedy capture from eating too much. #12

Closed td0wn closed 3 years ago

td0wn commented 3 years ago

The regex was eating everything up to the final closing paren, including from other svg transform commands when there are multiples, leading to args that were NaN values and causing an "Overload resolution failed" exception in Chrome/V8 when trying to call e.g. CanvasRenderingContext2D.scale() etc. Fix is to limit the regex to any non-closing paren char when parsing the transform command.

zz85 commented 3 years ago

thanks!