replaceCardId(oldId, newId) {
    const re = new RegExp(`{{\\s*#${oldId}\\s*}}`, "g");
    const newQueryText = this.queryText().replace(re, () => `{{#${newId}}}`);
    return this.setQueryText(newQueryText);
  }
// Template tags are updated as a result of calling `setQueryText`.
Template tags are updated as a result of calling `setQueryText`.
Template tags are updated as a result of calling ` setQueryText ` .
replaceCardId(oldId, newId) {
    const re = new RegExp(`{{\\s*#${oldId}\\s*}}`, "g");
    const newQueryText = this.queryText().replace(re, () => `{{#${newId}}}`);
    return this.setQueryText(newQueryText);
  }
replaceCardId ( oldId , newId ) { const re = new RegExp ( ` \\ ${ oldId } \\ ` , "g" ) ; const newQueryText = this . queryText ( ) . replace ( re , ( ) => ` ${ newId } ` ) ; return this . setQueryText ( newQueryText ) ; }
Template tags are updated as a result of calling `setQueryText`.
Template tags are updated as a result of calling ` setQueryText ` .