Skip to content
Snippets Groups Projects
Commit 5c0cba69 authored by Christoph Manns's avatar Christoph Manns Committed by Rhys Arkins
Browse files

fix(golang): Improve go datasource sourceMatch regex (#4552)

parent c95ae291
No related branches found
Tags 19.53.1
No related merge requests found
......@@ -30,7 +30,7 @@ async function getDatasource(name: string): Promise<DataSource | null> {
hostType: 'go',
})).body;
const sourceMatch = res.match(
new RegExp(`<meta name="go-source" content="${name}\\s+([^\\s]+)`)
new RegExp(`<meta\\s+name="go-source"\\s+content="${name}\\s+([^\\s]+)`)
);
if (sourceMatch) {
const [, goSourceUrl] = sourceMatch;
......
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