From 06ac034aee7f00f99aec4b55f4a2386371cb5794 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 3 Sep 2023 10:49:11 +0200 Subject: allow + as delemiter in paths (fixes #1165) --- spec/spec/utils/pathParser.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') diff --git a/spec/spec/utils/pathParser.js b/spec/spec/utils/pathParser.js index 15d0453..fdf10c7 100644 --- a/spec/spec/utils/pathParser.js +++ b/spec/spec/utils/pathParser.js @@ -159,6 +159,12 @@ describe('pathParser.js', () => { ['a', 48.0, 48.0, 0.0, 1.0, 1.0, 48.0, -48.0], ['a', 48.0, 48.0, 0.0, 0.0, 1.0, -48.0, 48.0] ]) + + expect(pathParser('M0+0 L100+0 L50+100')).toEqual([ + ['M', 0, 0], + ['L', 100, 0], + ['L', 50, 100] + ]) }) }) }) -- cgit v1.2.3