@forge/api
3.10.0-next.04.0.0-next.1
out/properties/sanitized-key.jsout/properties/sanitized-key.js−11
Index: package/out/properties/sanitized-key.js
===================================================================
--- package/out/properties/sanitized-key.js
+++ package/out/properties/sanitized-key.js
@@ -1,11 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.sanitizedKey = void 0;
-const sanitizedKey = (input) => {
- const regex = /^(~)?[A-Za-z0-9_\-\.]+$/;
- if (!regex.test(input)) {
- throw new Error('Invalid context/property key');
- }
- return input;
-};
-exports.sanitizedKey = sanitizedKey;