Skip to content

Commit 8d718e5

Browse files
fix: broken builds due to patterns (#336)
1 parent a25398e commit 8d718e5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/protocol-dts-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const getCommentLines = (description: string) => {
129129

130130
const emitDescription = (lines: string[]) => {
131131
emitLine(`/**`)
132-
lines.map(l => emitLine(` * ${l}`))
132+
lines.map(l => emitLine(` * ${l.replaceAll('*/', '*\\/')}`))
133133
emitLine(` */`)
134134
}
135135

types/protocol.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13816,7 +13816,7 @@ export namespace Protocol {
1381613816
export interface SetBlockedURLsRequest {
1381713817
/**
1381813818
* URL patterns to block. Patterns use the URLPattern constructor string syntax
13819-
* (https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.
13819+
* (https://urlpattern.spec.whatwg.org/). Example: `*://*:*\/*.css`.
1382013820
*/
1382113821
urlPatterns?: string[];
1382213822
/**

0 commit comments

Comments
 (0)