#22171: sanitize_separators throws away too many thousand separators -------------------------------+-------------------------------------- Reporter: vanschelven | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.4 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by claudep): Strange, I cannot reproduce your shell example. However, I can see that `12.210.10` is cleaned to `12.210.10`, so no cleaning happens in that case. That last issue could be fixed by: {{{ if decimal_separator in value: - value, decimals = value.split(decimal_separator, 1) + value, decimals = value.rsplit(decimal_separator, 1) parts.append(decimals) }}} Can you check once more? -- Ticket URL: <https://code.djangoproject.com/ticket/22171#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.4a031a932c3a353e6b6431b55e033b48%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.