Skip to content

Fix String.slice for Elixir 1.16+ compatibility#166

Open
andreagrossetti wants to merge 1 commit intoxou:masterfrom
andreagrossetti:fix/string-slice-elixir-1.16
Open

Fix String.slice for Elixir 1.16+ compatibility#166
andreagrossetti wants to merge 1 commit intoxou:masterfrom
andreagrossetti:fix/string-slice-elixir-1.16

Conversation

@andreagrossetti
Copy link

Problem: Elixir 1.16+ shows deprecation warnings when using String.slice/2 with negative indices, affecting the color parsing functionality in lib/elixlsx/color.ex.

Solution: Updated String.slice/2 usage to use the modern 3-argument form with explicit length parameter
Updated development dependencies to ensure compatibility with current Elixir versions
No breaking changes to public API

Changes:
lib/elixlsx/color.ex: Fixed String.slice deprecation warning
mix.exs & mix.lock: Updated dev dependencies
This ensures elixlsx works cleanly with Elixir 1.16+ while maintaining full backward compatibility.

@andreagrossetti andreagrossetti force-pushed the fix/string-slice-elixir-1.16 branch from ee9e218 to 813d8e5 Compare November 6, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant