Employed a regular expression pattern in the PeriodConverter to check the period format first.

This commit is contained in:
2020-07-23 22:13:17 +08:00
parent d88d3942d2
commit 25383a3ae6
3 changed files with 7 additions and 5 deletions

View File

@ -24,7 +24,7 @@ First written: 2020/7/10
<!-- the period chooser dialog -->
<!-- The Modal -->
<input id="period-url" type="hidden" value="{% url_period "period-spec" %}" />
<input id="period-url" type="hidden" value="{% url_period "0000-00-00" %}" />
<input id="period-month-picker-params" type="hidden" value="{{ period.month_picker_params }}" />
<div class="modal" id="period-modal">
<div class="modal-dialog">