Skip to content

Commit

Permalink
update find-links function
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Sep 4, 2024
1 parent 016f8b1 commit aa69cd3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/wrike_ist/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
azure-pattern #"https://dev\.azure\.com/[^/]+/[^/]+/_workitems/edit/\d+"
combined-pattern (re-pattern (str wrike-pattern "|" azure-pattern))]
(let [matches (re-seq combined-pattern text)]
(if (seq matches)
(distinct matches)
(js/console.log "No matching links found")))))
(do
(js/console.log "Combined Pattern:" combined-pattern)
(js/console.log "Text to Search:" text)
(js/console.log "Matches Found:" matches)
(if (seq matches)
(distinct matches)
(js/console.log "No matching links found"))))))

(defn extract-details
[pr-obj]
Expand Down

0 comments on commit aa69cd3

Please sign in to comment.