feat: adding check in normalizeDoc function to make sure readmeArr is of string type (#14481)
* feat: adding check in normalizeDoc function to make sure readmeArr is of string type * fix: removing empty line * Update scripts/docs-generation/3rdPartyDocs.ts --------- Co-authored-by: Christian Bromann <git@bromann.dev>
This commit is contained in:
parent
7a4a6ce46a
commit
5c3868b46f
2 changed files with 1 additions and 2 deletions
|
|
@ -1755,7 +1755,6 @@ export interface BrowserStackCapabilities {
|
|||
*/
|
||||
maskCommands?: string,
|
||||
|
||||
|
||||
/**
|
||||
* Enables the camera image injection feature.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ function normalizeDoc(readme: string, githubUrl: string, branch: string, preface
|
|||
*/
|
||||
let sliceIdx = 0
|
||||
for (let i = 0; i < readmeHeaderLines && sliceIdx === 0; i++) {
|
||||
if (readmeHeaders.some(x => readmeArr[i].startsWith(x))) {
|
||||
if (typeof readmeArr[i] === 'string' && readmeHeaders.some(x => readmeArr[i].startsWith(x))) {
|
||||
sliceIdx = i + 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue