Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where all .js urls in samples were changed to .max.js #912

Merged
merged 1 commit into from
Nov 16, 2015

Conversation

jmadler
Copy link
Contributor

@jmadler jmadler commented Nov 12, 2015

Fix bug where all .js urls in samples were changed to .max.js, even those not impacted by gulp (e.g. external urls in src attributes of embed tags)

@@ -321,7 +321,7 @@ function buildExample(name) {
console.log('Processing ' + name);
var html = fs.readFileSync(input, 'utf8');
var max = html;
max = max.replace(/\.js/g, '.max.js');
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity: What others are there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the use case that bit me:

<amp-gist data-src="https://gist.github.com/.../foo.js">

@cramforce cramforce added the LGTM label Nov 12, 2015
@cramforce
Copy link
Member

LGTM

jmadler added a commit that referenced this pull request Nov 16, 2015
Fix bug where all .js urls in samples were changed to .max.js
@jmadler jmadler merged commit 193dadf into ampproject:master Nov 16, 2015
@jmadler jmadler deleted the maxjsbug branch November 16, 2015 19:08
@qidonna qidonna mentioned this pull request Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants