Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sometimes I REALLLLLLY hate regex.
Fix for the following tags:
  * no tag
  * no hash
  • Loading branch information
jnovack committed Apr 7, 2018
commit 1f6204adf5dec889987ff3bc484c2adf24d32bc4
2 changes: 1 addition & 1 deletion src/data-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ let physicalStructProvider = ([initialNodes, initialContainers]) => {
var dt = new Date(cloned.UpdatedAt);
var color = stringToColor(cloned.ServiceID);
let serviceName = cloned.ServiceName;
let imageNameRegex = /((.*?)??\/?([^/.:]*?)\/?([^/]+))\:([^/]+)\@([^/]+)?$/;
let imageNameRegex = /((.*?)??\/?([^/.:]*?)\/?([^/:]+))\:?([^/\@]+)?\@?([^/]+)?$/;
let imageNameMatches = imageNameRegex.exec(cloned.Spec.ContainerSpec.Image);
let tagName = imageNameMatches[5];
let dateStamp = (dt.getFullYear()) + "-" + ('0' + (dt.getMonth() + 1)).slice(-2) + "-" + ('0' + dt.getDate()).slice(-2) + " " + ('0' + dt.getHours()).slice(-2) + ":" + ('0' + dt.getMinutes()).slice(-2);
Expand Down