anchor.diff:  
   
   
  -isNumeric(Number) -> 
  +is_numeric(Number) -> 
     case re:run(Number, "^[0-9 ]+$") of
  -    {match, Captured} -> true;
  +    {match, _} -> true;
       nomatch    -> false
     end.
   
   
   
  -isMinLength(Number) -> 
  -  re:replace(Number, "(^\\s+)|(\\s+$)", "", [global,{return,list}]).
  +is_min_length(Number) -> 
  +  length(re:replace(Number, "(^\\s+)|(\\s+$)", "", [global,{return,list}])) > 1.
   
   
   
  
positive.code: 
  
  valid(Number) ->
    isNumeric(Number) andalso checksum(Number) rem 10 == 0 andalso length(isMinLength(Number)) > 1.
  
  
  
  create(Number) ->
    lists:flatten([Number, ($: - (checksum(Number ++ [$0]) rem 10))]).
  
  
  
  test_version() ->
      1.
  
negative.code: -module(example).
  -export([valid/1, test_version/0]).
  
  
  
  