keymanapp / keymanapp/keyman

bug(web): KMWString `kmwIndexOf`, `kmwLastIndexOf` can return incorrect values

Open
#13,727 0 comments 0 reactions 0 assignees View on GitHub
bug web/
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

`kmwIndexOf` does not properly work for strings with SMP characters when a starting index is specified; this documents one such case. `kmwLastIndexOf` has the same issue.

_Originally posted by @jahorton in https://github.com/keymanapp/keyman/pull/13719#discussion_r2052007636_

Fortunately, we don't actually _use_ them at this time. But, they _are_ broken.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.