Skip to content

strutils.find uses cstring optimization that stops after \0 #19500

@metagn

Description

@metagn

Example

import strutils

echo "abc \0 def".find("def")

Current Output

-1

Expected Output

6

Possible Solution

Additional Information

$ nim -v
Nim Compiler Version 1.6.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions