debian-mirror-gitlab/app/assets/javascripts/jobs/utils.js
2021-01-30 21:13:34 +05:30

4 lines
192 B
JavaScript

// capture anything starting with http:// or https://
// up until a disallowed character or whitespace
export const linkRegex = /(https?:\/\/[^"<>\\^`{|}\s]+)/g;
export default { linkRegex };