[Noisebridge-discuss] Fwd: [hackerspaces] HackerSpace Status API – rel0.11

Joshua Juran jjuran at gmail.com
Tue Nov 22 07:41:50 UTC 2011

On Nov 21, 2011, at 4:44 PM, Felipe Sanches wrote:

> The phone number format restriction seems problematic:
> In Brazil a typical phone number would be +55 11 2204-7931 (this is  
> a guessed phone number from Brazil (55) in the city of São Paulo  
> (11) in the neighbourhood of Tucuruvi (2204))
> As you can see the format for brazil is +CCDDNNNNNNNN (C for  
> country code, D for state code, N for number) which corresponds to  
> 12 digits instead of 11 digits defined in the JSON struct

Phone numbers should probably be stored as a string of digits with no  
punctuation (possibly using 'x' to introduce further digits to be  
dialed after the call completes).  If all numbers include a country  
code, then the '+' is redundant.

Don't conflate storage with validity-checking -- those are two  
different things.


More information about the Noisebridge-discuss mailing list