Trim the input such that an added space (e.g. from copying the URL from a registry page) does not yield error "reference: value does not match the regex pattern". Although true that the regex is then not matched, this change avoids failing the validation due to an additional symbol that can simply be trimmed.
Signed-off-by: Michael Köppl <[email protected]> --- www/manager6/storage/TemplateView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/storage/TemplateView.js b/www/manager6/storage/TemplateView.js index 96313c1e5..207944585 100644 --- a/www/manager6/storage/TemplateView.js +++ b/www/manager6/storage/TemplateView.js @@ -216,7 +216,7 @@ Ext.define('PVE.storage.OciRegistryPull', { let me = this; let view = me.getView(); let refField = view.down('[name=reference]'); - let reference = refField.value; + let reference = refField.value.trim(); let tagField = view.down('[name=tag]'); Proxmox.Utils.API2Request({ -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
