From b6ed25caefb64e02d2b38e73f9c9c0e40fe6b04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20Kapano=C4=9Flu?= Date: Fri, 18 Jul 2025 21:11:26 -0700 Subject: [PATCH] Replace deprecated substr() --- jquery.color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.color.js b/jquery.color.js index e2f0c29..f21441b 100644 --- a/jquery.color.js +++ b/jquery.color.js @@ -452,7 +452,7 @@ color.fn = jQuery.extend( color.prototype, { return "#" + jQuery.map( rgba, function( v ) { // default to 0 when nulls exist - return ( "0" + ( v || 0 ).toString( 16 ) ).substr( -2 ); + return ( "0" + ( v || 0 ).toString( 16 ) ).slice( -2 ); } ).join( "" ); }, toString: function() {