Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] Uppercase HTML named entities are not decoded in meta-fetcher

クローズ 初心者向け
#314 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@anurag2787 がすでに取り組んでいます。

2026年10月30日 から。

  • #317 @anurag2787 による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

src/lib/meta-fetcher.ts から始めて decodeEntities を調べ、正規表現がエンティティ名に一致した後、その名前がどのように検索されるかに注目してください。提示された parseMetaTags の例で & を使って再現してください。完了条件は、タイトルに & ではなく、デコードされたアンパサンドが含まれることです。&、"、< のような大文字のエンティティを対象としたテストを追加するか、実行してください。

索引モデルが issue の本文から書いたものです。

説明

bug hacktoberfest

Describe the bug
The decodeEntities function in src/lib/meta-fetcher.ts fails to decode uppercase HTML entities such as &, ", and <. The regex matches these entities, but the lookup fails because the entity names are not converted to lowercase

To Reproduce
Steps to reproduce the behavior:

  1. Run the following code:
import { parseMetaTags } from '@/lib/meta-fetcher';

const tags = parseMetaTags(
  '<title>Tom &AMP; Jerry</title>',
  'https://example.com'
);

console.log(tags.title);2. Click on '...'
  1. Check the output.

Expected behavior
The title should be decoded correctly: Tom & Jerry

Actual behavior
The output retains the uppercase entity instead of decoding it: Tom &AMP; Jerry

主要言語
TypeScript
スター
8
フォーク
4
平均マージ
8時間 19分
マージ済み PR(30日)
140

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codercops/ogcops のほかの issue

codercops/ogcops の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。