Merge pull request #569 from nekikara/typo-single-white-space-signed
sketch: fix regex typo in rough.js
This commit is contained in:
commit
a88b6f86d4
2 changed files with 2 additions and 1 deletions
|
|
@ -3,4 +3,5 @@ d2layouts/d2elklayout/setup.js
|
|||
d2renderers/d2latex/mathjax.js
|
||||
d2renderers/d2latex/polyfills.js
|
||||
d2renderers/d2latex/setup.js
|
||||
d2renderers/d2sketch/rough.js
|
||||
lib/png/generate_png.js
|
||||
|
|
|
|||
|
|
@ -1261,7 +1261,7 @@ class B {
|
|||
n = [];
|
||||
if (!t) return this._drawable("path", n, s);
|
||||
const i = (function (t, e) {
|
||||
t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " ");
|
||||
t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
let s = new o(t);
|
||||
if (e.simplification) {
|
||||
const t = new r(s.linearPoints, s.closed).fit(e.simplification);
|
||||
|
|
|
|||
Loading…
Reference in a new issue