Skip to content

Commit

Permalink
adjusted bas account regext to not match email addresses so often
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 13, 2025
1 parent 48726c9 commit 2342750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuglane.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Fuglane - Issue links
// @namespace http://tampermonkey.net/
// @version 1.3.5
// @version 1.3.6
// @description Replace NTNU issue numbers, change numbers and upn's with clickable links to TopDesk
// @author Øyvind Nilsen (on@ntnu.no)
// @match https://fuglane.it.ntnu.no/display/*
Expand All @@ -23,7 +23,7 @@
if (node.nodeType === Node.TEXT_NODE) {
const incidentRegex = /(NTNU[0-9]{7})/gi;
const changeRegex = /(NTNU_C[0-9]{7})/gi;
const emailRegex = /([a-z0-9-_]{2,40})(?:@ntnu\.no)/gi;
const emailRegex = /(?<![a-z0-9-_.])([a-z0-9-_]{2,40})(?:@ntnu\.no)/gi;
const text = node.textContent;

//console.log("TEXT: " + text);
Expand Down

0 comments on commit 2342750

Please sign in to comment.