Skip to content

[bug] MATH grader: NBSP / middle-dot thousands (1 000 / 1·000) extract as "000" #507

Description

@marktech0813

Problem

Non-breaking space (U+00A0) and middle dot · (U+00B7) are common thousands separators (EU/typography). Extract keeps only the last group:

extract_last_number("1\u00a0000")  # "000"
extract_last_number("1·000")       # "000"
score_text("math500", "1\u00a0000", "1000")  # 0.0
score_text("math500", "1·000", "1000")       # 0.0

Sibling of ASCII , / ideographic / thin-space fixes.

Expected

Both forms extract/normalize as 1000.

Environment

  • origin/main

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:infraCI, workflows, and repository automationbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions