title: Postgresql: Remove last char in text-field if the column ends with minus sign
body: <p>I want to remove the last char in a column if it ends with the minus sign.
  How could I do this in postgresql?</p>
  
  <p>For example:</p>
  
  <pre><code>sdfs-dfg4t-etze45z5z- =&gt; sdfs-dfg4t-etze45z5z
  gsdhfhsfh-rgertggh =&gt; stay untouched
  </code></pre>
  
  <p>Is there an easy syntax I can use?</p>