Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Oct 12, 2023
1 parent 877064c commit 302e57b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@ class PublishDir {
*/
@CompileStatic
protected Path resolveFusionLink(Path file) {
while( file.name in getFusionLinks(file.parent) ) {
def pattern = ~/^\/fusion\/([^\/]+)\/(.*)/
final pattern = ~/^\/fusion\/([^\/]+)\/(.*)/
while( file.name in getFusionLinks(file.parent) )
file = file.text.replaceFirst(pattern) { _, scheme, path -> "${scheme}://${path}" } as Path
}
return file
}

Expand Down

0 comments on commit 302e57b

Please sign in to comment.