Skip to content

Commit f740356

Browse files
authored
Merge pull request #518 from intersystems/fix-497
Convert URLs in Sync output UI into clickable links
2 parents 93ebd68 + b7f0f05 commit f740356

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Added link back to IRIS management portal from Settings, Git WebUI pages (#449)
1414
- Added Import all and Import All (Force) to basic mode menu (#498)
1515
- Improved behavior for commits when attribution settings are not configured (#450)
16+
- Convert URLs in Sync output UI into clickable links (#497)
1617

1718
### Fixed
1819
- Changed prompts in configure from 0/1 to no/yes (#461)

csp/sync.csp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
&js<
148148
var outputContainer = document.getElementById('outputBox');
149149
var lineText = #(..QuoteJS(escapedLine))#;
150-
var lineTextNode = document.createTextNode(lineText);
150+
var urlRegex = /(https?:\/\/[^ ]*)/gi;
151+
lineText = lineText.replace(urlRegex, "<a href='$1' target=_blank>$1</a>");
151152
outputContainer.innerHTML += lineText + "<br>";
152153
>
153154
}

0 commit comments

Comments
 (0)