title: javascript regex to match a string ends with particular word
body: <p>I have two strings <br/>
  <code>"track/bugfix merged to 'master'"</code><br/>
  <code>"track/bugfix merged to 'track/clonemaster'"</code></p>
  
  <p>I want regex to match string ends with <code>'master'</code> only
  can anyone help me on this?</p>