Skip to content
Snippets Groups Projects
Unverified Commit 6bb68782 authored by Alessandro Vinciguerra's avatar Alessandro Vinciguerra Committed by GitHub
Browse files

feat: extract artifactory timestamps from columns (#33187)

parent 6e8b70ed
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
<pre> <pre>
<a href="..">..</a> <a href="..">..</a>
<a href="1.0.0">1.0.0</a> 21-Jul-2021 20:08 - <a href="1.0.0">1.0.0</a> 21-Jul-2021 20:08 -
<a href="1.0.1">1.0.1</a> 23-Aug-2021 20:03 - <a href="1.0.1">1.0.1</a> 23-Aug-2021 20:03 12 MB
<a href="1.0.2">1.0.2</a> 21-Jul-2021 20:09 - <a href="1.0.2">1.0.2</a> 21-Jul-2021 20:09 123.45 GB
<a href="1.0.3">1.0.3</a> 06-Feb-2021 09:54 - <a href="1.0.3">1.0.3</a> 06-Feb-2021 09:54 9.0 KB
</pre> </pre>
<hr/> <hr/>
<address style="font-size:small;">Artifactory Port 8080</address> <address style="font-size:small;">Artifactory Port 8080</address>
......
...@@ -114,6 +114,9 @@ export class ArtifactoryDatasource extends Datasource { ...@@ -114,6 +114,9 @@ export class ArtifactoryDatasource extends Datasource {
} }
private static parseReleaseTimestamp(rawText: string): string { private static parseReleaseTimestamp(rawText: string): string {
return rawText.trim().replace(regEx(/ ?-$/), '') + 'Z'; return (
rawText.split(regEx(/\s{2,}/)).filter((e) => !isNaN(Date.parse(e)))[0] +
'Z'
);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment