Fixed regex replacement

Closes #1282
This commit is contained in:
Igor Zhukov 2016-11-28 17:12:45 +03:00
parent f725f89079
commit 524823d6df

View File

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