okay yeah the }} isn't always the only thing on the line

This commit is contained in:
ewin 2025-08-12 18:35:40 -04:00
parent 4d7bd2515a
commit dc1c1514a6
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc

View file

@ -51,7 +51,7 @@ export function addParameterBesideExistingParameter (pageContent, newParamName,
} }
/** RegExp that matches the last parameter in an infobox. */ /** 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. */ /** Inserts a new parameter at the end of the infobox. */
export function addParameterAtBottom (pageContent, newParamName, value) { export function addParameterAtBottom (pageContent, newParamName, value) {