Skip to content

Commit

Permalink
Merge pull request #2809 from mashehu/fix-config-contact-parsing
Browse files Browse the repository at this point in the history
be less strict with matching profile contact for configs
  • Loading branch information
mashehu authored Oct 22, 2024
2 parents dee9615 + f15e6c4 commit 3f89074
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 91 deletions.
196 changes: 106 additions & 90 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion sites/configs/src/pages/configs/[configslug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ content = content?.replace(/nf-core\/configs(:)?\s*/g, '');
//wrap raw_config as markdown code-block
raw_config = '```groovy title="' + path.split('/').pop() + '"\n' + raw_config + '\n```';
const contact = config.config_profile_contact.match(/@(\w+)/) ? config.config_profile_contact.match(/@(\w+)/)[1] : '';
const contact = config.config_profile_contact.match(/@([A-Za-z0-9-]+)/)
? config.config_profile_contact.match(/@([A-Za-z0-9-]+)/)[1]
: '';
const gh_url = 'https://github.com/nf-core/configs/blob/master/docs/' + configslug + '.md';
---
Expand Down

0 comments on commit 3f89074

Please sign in to comment.