diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
commit | 5fd0a788d58bdd7d1348e379a6ecb56498f49718 (patch) | |
tree | 03f63d691ad85ef701fa02462a86db483a412e20 /lib/util.php | |
parent | f80c8f8ab079e290cc72ffc071d926cef79273cc (diff) |
start sms settings
darcs-hash:20080720193005-84dde-97e098996309550dc98b658923d84620e7715c69.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 74d5971f7..6f6f1dd24 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1319,4 +1319,10 @@ function common_profile_uri($profile) { } # XXX: this is a very bad profile! return NULL; +} + +function common_canonical_sms($sms) { + # strip non-digits + preg_replace('/\D/', '', $sms); + return $sms; }
\ No newline at end of file |