Project

General

Profile

Actions

Bug #101721

closed

TelephoneLinkHandler should allow commas and other pause characters

Added by Dominic Petit 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2023-08-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I'm requesting an enhancement for the asString function in the TelephoneLinkHandler class (TYPO3\CMS\Core\LinkHandling). I suggest adding support for pause characters like commas (,) and semi-colons (;) when generating phone links.
This enhancement is crucial for linking phone numbers with extensions, especially for scenarios involving automated systems and PIN inputs.
Adjust the existing regex pattern in TelephoneLinkHandler as follows:
Current Regex Pattern:


/(?:[^\d\+]+)/

Suggested Regex Pattern:

/(?:[^\d\+,;]+)/

This enhancement will provide more flexibility in generating telephone links to accommodate various dialing scenarios in different countries and systems.

Actions

Also available in: Atom PDF