From 76cbd130a0f83be6fb58ddbdb1538cee4768bbc5 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 22 Dec 2025 20:23:42 +0100 Subject: [PATCH] refactor: export functions --- lib/Urupam/Utils.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Urupam/Utils.pm b/lib/Urupam/Utils.pm index 19e95c8..234aa13 100644 --- a/lib/Urupam/Utils.pm +++ b/lib/Urupam/Utils.pm @@ -1,9 +1,18 @@ package Urupam::Utils; -use Mojo::Base -base; +use strict; +use warnings; +use Exporter 'import'; use Mojo::URL; use Mojo::Util qw(url_unescape); +our @EXPORT_OK = qw( + sanitize_input + get_error_status + sanitize_error_message + sanitize_url +); + sub sanitize_input { my ($input) = @_; return '' unless defined $input;