1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(service): add restart policy options in service create/details (#1479)

This commit is contained in:
Miguel A. C 2017-12-07 21:05:45 +01:00 committed by Anthony Lapenna
parent bdb23a8dd2
commit d0e147137d
6 changed files with 161 additions and 82 deletions

View file

@ -142,7 +142,7 @@ angular.module('portainer.helpers').factory('ServiceHelper', [function ServiceHe
};
helper.translateHumanDurationToNanos = function(humanDuration) {
var nanos = 0;
var nanos;
var regex = /^([0-9]+)(h|m|s|ms|us|ns)$/i;
var matches = humanDuration.match(regex);