From dc1c1514a6da9f6c51576743e999cff5833c0dd8 Mon Sep 17 00:00:00 2001 From: ewin Date: Tue, 12 Aug 2025 18:35:40 -0400 Subject: [PATCH] okay yeah the }} isn't always the only thing on the line --- lib/util/template-parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/template-parameters.js b/lib/util/template-parameters.js index a2c7d18..21cdb22 100644 --- a/lib/util/template-parameters.js +++ b/lib/util/template-parameters.js @@ -51,7 +51,7 @@ export function addParameterBesideExistingParameter (pageContent, newParamName, } /** RegExp that matches the last parameter in an infobox. */ -const existingLastParameterRegExp = /^( *)\|( *)([a-z0-9-_]+)( *)=( *)(.*)(\n *}})$/m; +const existingLastParameterRegExp = /^( *)\|( *)([a-z0-9-_]+)( *)=( *)(.*)(\n *}})/m; /** Inserts a new parameter at the end of the infobox. */ export function addParameterAtBottom (pageContent, newParamName, value) {