UNPKG

n8n

Version:

n8n Workflow Automation Tool

17 lines 505 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateRedirectUrl = validateRedirectUrl; function validateRedirectUrl(redirectUrl) { if (typeof redirectUrl !== 'string' || redirectUrl.trim() === '') { return '/'; } const trimmed = redirectUrl.trim(); if (!trimmed.startsWith('/')) { return '/'; } if (trimmed.startsWith('//')) { return '/'; } return trimmed; } //# sourceMappingURL=validate-redirect-url.js.map