Skip to content

Commit

Permalink
simplify regular expression
Browse files Browse the repository at this point in the history
from Dakota's review on 06/13/24

Co-authored-by: Dakota Dutko <dakota.d@live.com>
  • Loading branch information
tylerbarna and dakota002 authored Jun 14, 2024
1 parent ec8b024 commit 7462fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replacements/tns/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FindAndReplace } from '../index.js'

export default {
find: /(?<!http:\/\/|https:\/\/)(?<!http:\/\/.*|https:\/\/.*)AT\s*(2\d{3}[a-z]+)/g,
find: /(?<!https?:\/\/)(?<!https?:\/\/.*)AT\s*(2\d{3}[a-z]+)/g,
replace(data, text, value) {
return data('tns', text, value)
},
Expand Down

0 comments on commit 7462fe9

Please sign in to comment.