Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

科目番号が前方一致で検索されていない #332

Open
Gai-H opened this issue Apr 10, 2024 · 0 comments
Open

科目番号が前方一致で検索されていない #332

Gai-H opened this issue Apr 10, 2024 · 0 comments

Comments

@Gai-H
Copy link

Gai-H commented Apr 10, 2024

キーワードの input に "科目番号は前方一致、その他は正規表現に対応" との placeholder がありますが、検索結果に前方一致していない科目まで表示されているようです

search.ts のこの行が原因のような気がします

const matchesCode = options.containsCode && subject.code.indexOf(options.keyword) > -1;

例: GA1 を入力
image
image

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

No branches or pull requests

1 participant