Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug with Picture.js

  • Loading branch information...
commit ea3b7f0e614318cfbfc0ffb33451b667eca25845 1 parent 08ce666
Ed Spencer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/model/Picture.js
2  app/model/Picture.js
View
@@ -17,7 +17,7 @@ Ext.define('apod.model.Picture', {
var content = record.get('content'),
regex = /img src=\"([a-zA-Z0-9\_\.\/\:]*)\"/,
match = content.match(regex),
- src = match[1];
+ src = match ? match[1] : '';
if (src != "" && !src.match(/\.gif$/)) {
src = "http://src.sencha.io/screen.width/" + src;
Please sign in to comment.
Something went wrong with that request. Please try again.