Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

[#884374] Do not publish webmaker:template tags.#143

Merged
ScottDowne merged 1 commit intomozilla:masterfrom
ScottDowne:t884374
Jun 18, 2013
Merged

[#884374] Do not publish webmaker:template tags.#143
ScottDowne merged 1 commit intomozilla:masterfrom
ScottDowne:t884374

Conversation

@ScottDowne
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if it makes more sense to use a foreach at this point;

var silentTags = ["recommended", "features", "template"];
silentTags.forEach( function(term) {
  content = content.replace(new RegExp("webmaker:" + term,'g'), '');
});

Just so we can more easily add more terms without duplicating code, just adding more strings?

@ScottDowne ScottDowne merged commit 1aacf7a into mozilla:master Jun 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants