Skip to content

Replace deprecated substr() #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Replace deprecated substr() #149

wants to merge 1 commit into from

Conversation

ssg
Copy link

@ssg ssg commented Jul 19, 2025

This function is giving out deprecation warnings on modern IDEs. Replacing it with more modern and very well-supported alternative.

@Copilot Copilot AI review requested due to automatic review settings July 19, 2025 04:13
Copy link

linux-foundation-easycla bot commented Jul 19, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces the deprecated substr() method with the modern slice() method to eliminate deprecation warnings in modern IDEs. The change maintains identical functionality while using a more current and well-supported string method.

  • Replace substr(-2) with slice(-2) in hex color string generation
  • Modernize code to avoid deprecation warnings without changing behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant