|
From: | Dave Cinege |
Subject: | [Linphone-developers] Feature Bounty: Enhanced '+' prefix replacement. I will pay or donate. |
Date: | Thu, 16 May 2019 01:32:17 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
I personally need this (in python logic): if number.startswith('+1'): number = number[1:] elif number.startswith('+'): number = '011' + number[1:] Ideally it should be flexible enough to offer several match/replace options: if number.startswith(match0): number = replace0 + number[len(match0):] elif number.startswith(match1): number = replace1 + number[len(match1):] elif number.startswith(match2): number = replace2 + number[len(match2):]If anyone is able to add this I will pay or donate $/€ as I've wanted this for years. I of course want to see this placed into the upstream version.
Dave
[Prev in Thread] | Current Thread | [Next in Thread] |