Browse Source

Fixed regex replacement

Closes #1282
master
Igor Zhukov 8 years ago
parent
commit
524823d6df
  1. 2
      app/js/filters.js

2
app/js/filters.js

@ -145,7 +145,7 @@ angular.module('myApp.filters', ['myApp.i18n']) @@ -145,7 +145,7 @@ angular.module('myApp.filters', ['myApp.i18n'])
var durationStr = (hours ? hours + ':' : '') + mins + ':' + secs
durationStr = durationStr.replace(/:(\d(?::|$))/g, ':0\1')
durationStr = durationStr.replace(/:(\d(?::|$))/g, ':0$1')
return durationStr
}

Loading…
Cancel
Save