multiple-cucumber-html-reporter icon indicating copy to clipboard operation
multiple-cucumber-html-reporter copied to clipboard

fix: file name formatting by white space not by only English

Open Seunghyum opened this issue 3 years ago • 0 comments

First of all thank you for make wonderful package :)

Environment (please complete the following information):

  • multiple-cucumber-html-reporter: 1.18.0
  • Node.js version: 14.16.1
  • NPM version: 6.14.12
  • Platform name and version: Mac
  • Cucucmber version: 7.1.0

Config of multiple-cucumber-html-reporter

{
  reportName: `${platformName}.${platformVersion}.${deviceName}`,
  jsonDir: `${BASE_DIR}/json`,
  reportPath: `${BASE_DIR}/html`,
  openReportInBrowser: true,
  displayReportTime: true,
  disableLog: true,
  staticFilePath: true,
}

Describe the bug my pr https://github.com/wswebcreation/multiple-cucumber-html-reporter/pull/148

html output file naming bug. my mother tongue is Korean. i want to make html file by Korean

now it is only possible by English

feature.id = `${ idPrefix }${ feature.id }`.replace(/[^a-zA-Z0-9-_]/g, '-');

if feature is 로그인 테스트 it is become ------.html file not 로그인-테스트.html. i want to fix this. html file name formatting by white place.

feature.id = `${ idPrefix }${ feature.id }`.split(" ").join("-");

To Reproduce make feature name by not English.

Expected behavior The output file name will be --------.html

Seunghyum avatar Aug 09 '21 02:08 Seunghyum