From a5f845bef0cbb10a82f9d5d1f68c02ab84034091 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 1 Dec 2025 10:13:23 -0500 Subject: [PATCH] Make sure width is a string before using match() --- ts/output/common/Wrappers/mpadded.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/output/common/Wrappers/mpadded.ts b/ts/output/common/Wrappers/mpadded.ts index 35eff53ca..acbc5a6b0 100644 --- a/ts/output/common/Wrappers/mpadded.ts +++ b/ts/output/common/Wrappers/mpadded.ts @@ -173,7 +173,7 @@ export function CommonMpaddedMixin< { get containerWidth(): number { const attributes = this.node.attributes; - const w = attributes.get('width') as string; + const w = attributes.get('width').toString(); if ( !w.match(/^[-+]|%$/) && attributes.get('data-overflow') === 'linebreak'