@urso/core 0.4.25 → 0.4.26

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -68,7 +68,10 @@ class ModulesI18nController {
68
68
  _interpolate(string, params) {
69
69
  const names = Object.keys(params);
70
70
  const vals = Object.values(params);
71
- return new Function(...names, `return \`${string}\`;`)(...vals);
71
+ const encodedString = encodeURIComponent(string);
72
+ const resultEncodedString = new Function(...names, `return \`${encodedString}\`;`)(...vals);
73
+
74
+ return decodeURIComponent(resultEncodedString);
72
75
  }
73
76
  }
74
77