Skip to content

Commit

Permalink
Merge pull request #3754 from alphagov/fix-audit-number-bug
Browse files Browse the repository at this point in the history
Fix auditing filename bug
  • Loading branch information
andysellick authored Dec 7, 2023
2 parents 374ab15 + 3ffdca2 commit 1ec5ec0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def find_code_references(file, src, regex)
end

def clean_file_path(file)
file[/(?<=#{Regexp.escape(@path.to_s)}\/)[\/a-zA-Z_-]+.[a-zA-Z+.]+/]
file[/(?<=#{Regexp.escape(@path.to_s)}\/)[\/0-9a-zA-Z_-]+.[0-9a-zA-Z+.]+/]
end

def clean_file_name(name)
Expand Down
2 changes: 1 addition & 1 deletion spec/component_guide/audit_applications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"error summary": ["app/views/welcome/error_summary.html.erb"],
details: ["app/views/welcome/asset_helper.html.erb"],
feedback: ["app/views/layouts/application.html.erb"],
govspeak: ["app/views/welcome/contextual_navigation.html.erb", "lib/test_file_1.rb"],
govspeak: ["app/views/welcome/contextual_navigation.html.erb", "lib/1_test_file_1.rb"],
input: ["app/views/welcome/error_summary.html.erb", "app/views/welcome/error_summary.html.erb"],
"layout footer": ["app/views/layouts/dummy_admin_layout.html.erb"],
"layout for admin": ["app/views/layouts/dummy_admin_layout.html.erb"],
Expand Down
File renamed without changes.

0 comments on commit 1ec5ec0

Please sign in to comment.