mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-04 18:08:54 +00:00
* Add phone number matching helpers for tel: autolinks. Detect E.164, grouped national numbers, and tel: URIs while skipping bare digit runs that look like ticket IDs or dates. Co-authored-by: joram <joram@mattermost.com> * Autolink phone numbers in post markdown as tel: links. Wrap recognized numbers in markdown link nodes after parsing so tapping opens the device dialer. Skip code, existing links, and unsafe posts. Co-authored-by: joram <joram@mattermost.com> * Copy phone numbers from tel: markdown links on long-press. Treat tel: like mailto: in link and channel-header sheets, and cover opening tel: URLs through the existing openLink path. Co-authored-by: joram <joram@mattermost.com> * Reject truncated phone matches inside longer digit sequences. Skip past hyphens and dots when checking match boundaries so overlong numbers and numeric prefixes are not autolinked. Keep spaces and parentheses as boundaries so adjacent numbers still match. Also address CodeRabbit test nits: assert match counts, prefix autolinkPhoneNumbers cases with should, and assert rendered tel: links. Co-authored-by: joram <joram@mattermost.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| at_mention | ||
| channel_mention | ||
| hashtag | ||
| inline_action_button | ||
| inline_entity_link | ||
| markdown_block_quote | ||
| markdown_code_block | ||
| markdown_image | ||
| markdown_latex_block | ||
| markdown_latex_inline | ||
| markdown_link | ||
| markdown_list | ||
| markdown_list_item | ||
| markdown_table | ||
| markdown_table_cell | ||
| markdown_table_image | ||
| markdown_table_row | ||
| error_boundary.tsx | ||
| index.ts | ||
| markdown.test.tsx | ||
| markdown.tsx | ||
| transform.test.ts | ||
| transform.ts | ||