@woosh/meep-engine 2.128.11 → 2.128.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Pure JavaScript game engine. Fully featured and production ready.",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.128.11",
8
+ "version": "2.128.12",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -16,7 +16,7 @@ export function graphviz_escape_string(input) {
16
16
  assert.isString(input, 'input');
17
17
 
18
18
  return input
19
- .replace(/\\/g, '\\\\') // 1. Escape backslashes first
19
+ .replace(/([|{}\\])/g, '\\$1') // escape special characters
20
20
  .replace(/"/g, '\\"') // 2. Escape double quotes
21
21
  .replace(/\n/g, '\\n'); // 3. Convert newlines to the \n sequence for centered lines
22
22
  }