Skip to content

Commit 612e24f

Browse files
committed
fix: trim string
1 parent f0c0800 commit 612e24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Repository/ToolRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function stringToHex($str)
5353
*/
5454
public function hexToString($input)
5555
{
56-
$hex = strtoupper($input);
56+
$hex = strtoupper(trim($input));
5757
$hex = str_replace(['\\X', 'X'], '', $hex);
5858
if (!preg_match("/^[A-Fa-f0-9]+$/", $hex)) {
5959
return '';

0 commit comments

Comments
 (0)