From b4d390c33afd8b83a2d6367d872e7634d14f60cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 23 Mar 2023 00:00:39 +0800 Subject: [PATCH] Renamed the isMatches method to isMatched in the JavaScript RecurringAccount class. --- src/accounting/static/js/option-form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/static/js/option-form.js b/src/accounting/static/js/option-form.js index 6d93d49..23c98c1 100644 --- a/src/accounting/static/js/option-form.js +++ b/src/accounting/static/js/option-form.js @@ -854,7 +854,7 @@ class RecurringAccountSelector { #filterOptions() { let hasAnyMatched = false; for (const option of this.#options) { - if (option.isMatches(this.#query.value)) { + if (option.isMatched(this.#query.value)) { option.setShown(true); hasAnyMatched = true; } else { @@ -951,7 +951,7 @@ class RecurringAccount { * @param query {string} the query term * @return {boolean} true if the option matches, or false otherwise */ - isMatches(query) { + isMatched(query) { if (query === "") { return true; }