codePreviews: add support for selfhost gitlab
This commit is contained in:
		
							parent
							
								
									8345f5858e
								
							
						
					
					
						commit
						ae66cfa216
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@ const fetch = require("node-fetch");
 | 
			
		|||
const REGEX_GITHUB =
 | 
			
		||||
  /(?:\s|^)https?:\/\/(www\.)?github\.com\/.+?\/.+?\/blob\/([a-zA-Z0-9-_.#/]*)/g;
 | 
			
		||||
const REGEX_GITLAB =
 | 
			
		||||
  /(?:\s|^)https?:\/\/(www\.)?gitlab\.com\/.+?\/.+?\/-\/blob\/([a-zA-Z0-9-_.#/]*)/g;
 | 
			
		||||
  /(?:\s|^)https?:\/\/.+?\/.+?\/.+?\/-\/blob\/([a-zA-Z0-9-_.#/]*)/g;
 | 
			
		||||
const REGEX_GITEA =
 | 
			
		||||
  /(?:\s|^)https?:\/\/.+?\/.+?\/.+?\/src\/branch\/([a-zA-Z0-9-_.#/]*)/g;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue