Skip to content
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

Improved unicode support in mutator, flattener, and more #2662

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bugfix naming_convention formatter
bohendo committed Feb 10, 2025
commit 78fe705920ae0b79277447c4065b34a867d689df
Original file line number Diff line number Diff line change
@@ -339,7 +339,7 @@ def _is_var_declaration(slither: SlitherCompilationUnit, filename: str, start: i
:return:
"""
v = "var "
return slither.core.source_code[filename][start : start + len(v)] == v
return slither.core.source_code[filename].encode("utf8")[start : start + len(v)].decode("utf8") == v


def _explore_type( # pylint: disable=too-many-arguments,too-many-locals,too-many-branches