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:
Claire Lovisa
2025-01-22 14:16:40 +01:00
parent 83f247b051
commit 55cb772e92

View File

@@ -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)
}