@saptools/cf-inspector 0.4.4 → 0.4.5

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/dist/cli.js CHANGED
@@ -1172,16 +1172,7 @@ function parseRemoteRoot(value) {
1172
1172
  return { kind: "literal", value: stripTrailingSlash(trimmed) };
1173
1173
  }
1174
1174
  function toRegex(pattern, flags) {
1175
- try {
1176
- const regex = new RegExp(pattern, flags);
1177
- return { kind: "regex", pattern, flags, regex };
1178
- } catch (err) {
1179
- const message = err instanceof Error ? err.message : String(err);
1180
- throw new CfInspectorError(
1181
- "INVALID_REMOTE_ROOT",
1182
- `Failed to compile remote-root regex "${pattern}" with flags "${flags}": ${message}`
1183
- );
1184
- }
1175
+ return { kind: "regex", pattern, flags };
1185
1176
  }
1186
1177
  function parseSlashDelimited(value) {
1187
1178
  if (!value.startsWith("/")) {