Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant-Archibald-MS committed Nov 16, 2024
1 parent 5a74591 commit 0343a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/_plugins/copy_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def copy_files_with_stack(source, destination, site_source)
# This method updates links in the file content.
def update_links(file_path)
content = File.read(file_path)
updated_content = content.gsub(/https:\/\/github\.com\/Grant-Archibald-MS\/powerfuldev-testing\/blob\/main\/([^\s]+)\.md/) do |match|
updated_content = content.gsub(/https:\/\/github\.com\/Grant-Archibald-MS\/powerfuldev-testing\/blob\/main\/(.*)\.md/) do |match|
"/powerfuldev-testing/#{$1}"
end
updated_content.gsub!(/\/([^\s]+)\.md/) do |match|
Expand Down

0 comments on commit 0343a10

Please sign in to comment.