Update phone number mapping
The default behaviour should clean any number that can be cleaned BUT let the other numbers flow without any modification. The previous behaviour I'm fixing here was to NOT let them flow if they were not in a "cleanable" format.
This commit is contained in:
@@ -17,7 +17,5 @@ CONSTRUCT {
|
||||
|
||||
BIND(REPLACE(?extendedDefaultBe, """^320""", "+32") AS ?finalResult)
|
||||
|
||||
FILTER(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$"""))
|
||||
|
||||
BIND(CONCAT("tel:", ?finalResult) as ?cleanedPhoneNumber)
|
||||
BIND(IF(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$"""), CONCAT("tel:", ?finalResult), ?phoneNumber) AS ?cleanedPhoneNumber)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user