debian-mirror-gitlab/app/assets/javascripts/jobs/utils.js

5 lines
192 B
JavaScript
Raw Normal View History

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