Skip to content

refactor: rename shadowed mm variable in Date rule - #340

Merged
pengzhendong merged 1 commit into
masterfrom
fix/date-mm-variable
Jun 9, 2026
Merged

refactor: rename shadowed mm variable in Date rule#340
pengzhendong merged 1 commit into
masterfrom
fix/date-mm-variable

Conversation

@pengzhendong

@pengzhendong pengzhendong commented Jun 9, 2026

Copy link
Copy Markdown
Member

Closes #297

Summary

Replace the confusing variable shadowing where mm was redefined with a separate month_two_digit variable for clarity. No behavior change — the two-digit-only month constraint for 0m/yyyy and 0m/dd patterns is preserved.

Test plan

  • All 1400 unit tests pass
  • CI passes

Replace the confusing variable shadowing where mm was redefined on
line 46 with a separate month_two_digit variable for clarity.
No behavior change.
@pengzhendong
pengzhendong merged commit a24806e into master Jun 9, 2026
1 check passed
@pengzhendong
pengzhendong deleted the fix/date-mm-variable branch June 9, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

感觉tn/chinese/date.py里面的代码有一点小问题

1 participant