Skip to content

Commit

Permalink
Merge pull request #439 from IBMa/joho-1582-shortenReportName
Browse files Browse the repository at this point in the history
Joho 1582 shorten report name
  • Loading branch information
tombrunet authored Jun 3, 2021
2 parents 684817a + 0516085 commit a50aebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ export default class DevToolsPanelApp extends React.Component<IPanelProps, IPane

var tabTitle: string = this.state.tabTitle;
var tabTitleSubString = tabTitle ? tabTitle.substring(0, 50) : "";
var filename = "IBM_Equal_Access_Accessibility_Checker_Report_for_Page---" + tabTitleSubString + ".html";
var filename = "Accessibility_Report-" + tabTitleSubString + ".html";
//replace illegal characters in file name
filename = filename.replace(/[/\\?%*:|"<>]/g, '-');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class ReportUtil {
public static single_page_report_file_name(tab_title: string) {

var tab_title_substring = tab_title ? tab_title.substring(0, 50) : "";
var file_name = "IBM_Equal_Access_Accessibility_Checker_Report_for_Page---" + tab_title_substring + ".xlsx";
var file_name = "Accessibility_Report-" + tab_title_substring + ".xlsx";

//replace illegal characters in file name
file_name = file_name.replace(/[/\\?%*:|"<>]/g, '-');
Expand Down

0 comments on commit a50aebf

Please sign in to comment.