okay yeah the }} isn't always the only thing on the line
This commit is contained in:
parent
4d7bd2515a
commit
dc1c1514a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue