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

Make correct src to images #22

Merged
merged 1 commit into from
Mar 30, 2015
Merged

Make correct src to images #22

merged 1 commit into from
Mar 30, 2015

Conversation

gela-d
Copy link

@gela-d gela-d commented Mar 27, 2015

No description provided.

@gela-d
Copy link
Author

gela-d commented Mar 27, 2015

@tormozz48

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 25.68% when pulling 3daa75f on BEMINFO-1054 into b41c1a3 on master.

content = content.replace(REGEXP.SRC, function(str, href){
//if href is absolute (src="http://..." ) return href
href = /^http/.test(href) ? href : buildSrcForImages(href, doc);
return '<img src="' + href + '"';
Copy link

Choose a reason for hiding this comment

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

don't you need to close image tag here?

Copy link
Author

Choose a reason for hiding this comment

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

@sipayRT nope, we have it in further code

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 25.68% when pulling e615b3a on BEMINFO-1054 into b41c1a3 on master.

@tavriaforever
Copy link
Member

lgtm

1 similar comment
@tormozz48
Copy link
Member

lgtm

gela-d pushed a commit that referenced this pull request Mar 30, 2015
Make correct src to images
@gela-d gela-d merged commit ac69751 into master Mar 30, 2015
@gela-d gela-d deleted the BEMINFO-1054 branch March 30, 2015 10:42
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 25.68% when pulling 8952944 on BEMINFO-1054 into b41c1a3 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 25.68% when pulling 8952944 on BEMINFO-1054 into b41c1a3 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants