Jacob Söndergaard  committed 481cd11

detection of numbers combined with multiple dots as YAML strings

  • Participants
  • Parent commits 6d9eed1

Comments (0)

Files changed (1)

File beanstalkt/

             # it is a dict
             conv = lambda v: ((float(v) if '.' in v else int(v))
-                if v.replace('.', '').isdigit() else v)
+                if v.replace('.', '', 1).isdigit() else v)
             resp.body = dict((k, conv(v.strip())) for k, v in
                     (s.split(':') for s in spl))
         self._do_callback(cb, resp)