title: How to modify image when source contains a certain letter?
body: <p>I am trying to modify an image only if the source contains certain letters. For example, trying to find out if the image source contains "-large":</p>
  
  <p>Example source:
      </p>
  
  <p>Here's what I have:</p>
  
  <pre><code>if($('img.someclass').indexOf('-large') === -1){
  </code></pre>
  
  <p>This seems to somewhat work, but once it triggers, it breaks other elements in the page, and I get the following error:</p>
  
  <pre><code>TypeError: 'undefined' is not a function (evaluating '$('img.someclass').indexOf('-large')')
  </code></pre>
  
  <p>Any better way of going about this?</p>