summaryrefslogtreecommitdiff
path: root/source/features/prevent-pr-commit-link-loss.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/prevent-pr-commit-link-loss.tsx')
-rw-r--r--source/features/prevent-pr-commit-link-loss.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/prevent-pr-commit-link-loss.tsx b/source/features/prevent-pr-commit-link-loss.tsx
index 80ea157e..88191cd8 100644
--- a/source/features/prevent-pr-commit-link-loss.tsx
+++ b/source/features/prevent-pr-commit-link-loss.tsx
@@ -25,7 +25,7 @@ function getUI(field: HTMLTextAreaElement): HTMLElement {
);
}
-const updateUI = debounceFn(({delegateTarget: field}: delegate.Event<InputEvent, HTMLTextAreaElement>): void => {
+const updateUI = debounceFn(({delegateTarget: field}: delegate.Event<Event, HTMLTextAreaElement>): void => {
// The replacement logic is not just in the regex, so it alone can't be used to detect the need for the replacement
if (field.value === field.value.replace(prCommitUrlRegex, preventPrCommitLinkLoss) && field.value === field.value.replace(prCompareUrlRegex, preventPrCompareLinkLoss)) {
getUI(field).remove();