Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit eb37b09

Browse files
committed
dont lowercase
1 parent 8e7b33e commit eb37b09

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ecency/render-helper",
3-
"version": "2.3.10",
3+
"version": "2.3.11",
44
"description": "Markdown+Html Render helper",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/methods/img.method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function img(el: HTMLElement, webp: boolean, state?: { firstImageFound: b
77
const decodedSrc = decodeURIComponent(
88
src.replace(/&#(\d+);/g, (_, dec) => String.fromCharCode(dec))
99
.replace(/&#x([0-9a-f]+);/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)))
10-
).trim().toLowerCase();
10+
).trim();
1111

1212
// ❌ Remove if javascript or empty/invalid
1313
const isInvalid = !src || decodedSrc.startsWith("javascript") || decodedSrc.startsWith("vbscript") || decodedSrc === "x";

0 commit comments

Comments
 (0)