mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Custom regexp external issues (#17624)
* Implement custom regular expression for external issue tracking. Signed-off-by: Alexander Beyn <malex@fatelectrons.org> * Fix syntax/style * Update repo.go * Set metas['regexp'] * gofmt * fix some tests * fix more tests * refactor frontend * use LRU cache for regexp * Update modules/markup/html_internal_test.go Co-authored-by: Alexander Beyn <malex@fatelectrons.org> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -462,6 +462,11 @@ export function initRepository() { | ||||
|         if (typeof $(this).data('context') !== 'undefined') $($(this).data('context')).addClass('disabled'); | ||||
|       } | ||||
|     }); | ||||
|     const $trackerIssueStyleRadios = $('.js-tracker-issue-style'); | ||||
|     $trackerIssueStyleRadios.on('change input', () => { | ||||
|       const checkedVal = $trackerIssueStyleRadios.filter(':checked').val(); | ||||
|       $('#tracker-issue-style-regex-box').toggleClass('disabled', checkedVal !== 'regexp'); | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   // Labels | ||||
|   | ||||
		Reference in New Issue
	
	Block a user