mw.language.convertNumber() behavior for four-digit numbers is incorrect for Polish. The parser function {{formatnum:}} functions correctly. Four-digit numbers should not have a thousands separator (space) inserted after the first digit, only five-digit numbers (and longer).
I originally noticed this in the new RC filters:
To reproduce:
console.log( mw.language.convertNumber( 1000 ) );
| Input | Expected result | Current result | |
|---|---|---|---|
| 10 | 10 | 10 | |
| 100 | 100 | 100 | |
| 1000 | 1000 | 1 000 | ← WRONG |
| 10000 | 10 000 | 10 000 |
