Skip to content

Commit

Permalink
Merge pull request #111 from omnisend/bug-fix
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
Gabiermi authored May 9, 2024
2 parents 27d97ee + 162bf0e commit c86d7af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions omnisend/includes/Internal/class-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function is_valid_custom_property_name( $name ): bool {
*/
public static function clean_up_custom_property_name( $name ): string {
$name = preg_replace( '/[^a-zA-Z0-9_]/', '', $name );
return mb_strimwidth( $name, 0, 128 );
return substr( $name, 0, 128 );
}

/**
Expand All @@ -54,6 +54,7 @@ public static function is_valid_tag( $tag ): bool {
*/
public static function clean_up_tag( $tag ): string {
$tag = preg_replace( '/[^A-Za-z0-9_\- ]/', '', $tag );
return mb_strimwidth( $tag, 0, 128 );

return substr( $tag, 0, 128 );
}
}

0 comments on commit c86d7af

Please sign in to comment.