@contrail/util 1.0.34 → 1.0.35

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.
@@ -11,6 +11,9 @@ class StringUtil {
11
11
  }
12
12
  static parseVariables(variableString, data, quoteStrings = false) {
13
13
  const regExp = /\{([^}]+)\}/g;
14
+ if (!variableString) {
15
+ return variableString;
16
+ }
14
17
  const replacedString = variableString.replace(regExp, (match, group) => {
15
18
  const variableLevels = group.split('.');
16
19
  let replacementValue = data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "General javascript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,6 @@
8
8
  "build": "tsc",
9
9
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
10
10
  "lint": "tslint -p tsconfig.json",
11
- "test:watch": "jest --watch",
12
11
  "test": "jest"
13
12
  },
14
13
  "keywords": [],