@ibm-cloud/cd-tools 1.15.1 → 1.15.2

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.
@@ -217,5 +217,10 @@ export function normalizeName(str) {
217
217
 
218
218
  newStr = newStr.replaceAll(whitelistRegex, '');
219
219
 
220
+ // terraform resource names must start with a letter
221
+ if (!newStr.slice(0,1).match(/[A-Za-z]/)) {
222
+ newStr = `x_${newStr}`;
223
+ }
224
+
220
225
  return newStr.toLowerCase();
221
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cd-tools",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "Tools and utilities for the IBM Cloud Continuous Delivery service and resources",
5
5
  "repository": {
6
6
  "type": "git",