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) {