MCPcopy Create free account
hub / github.com/Roy3838/Observer / is_subsequence

Function is_subsequence

api/messaging.py:60–63  ·  view source on GitHub ↗

Check if shorter is a subsequence of longer (all chars appear in same order).

(shorter: str, longer: str)

Source from the content-addressed store, hash-verified

58 return ''.join(c for c in phone if c.isdigit() or c == '+')
59
60def is_subsequence(shorter: str, longer: str) -> bool:
61 """Check if shorter is a subsequence of longer (all chars appear in same order)."""
62 it = iter(longer)
63 return all(c in it for c in shorter)
64
65def phone_numbers_fuzzy_match(num1: str, num2: str) -> bool:
66 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected