Skip to content

Commit 9b19c0b

Browse files
committed
Use plaintext part of the MDN template
The existing regex was expecting `{{domxref(text)}}` form and did not dela with `{{domxref(link, text}}` form. This patch fixes that. Many more lines added but regex was reduced. Despite that I think it's now more readable.
1 parent 04edadb commit 9b19c0b

16 files changed

+1423
-1395
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ interface AbortSignal extends EventTarget {
228228
*/
229229
readonly reason: any;
230230
/**
231-
* The **`throwIfAborted()`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
231+
* The **`throwIfAborted()`** method throws the signal's abort reason if the signal has been aborted; otherwise it does nothing.
232232
*
233233
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
234234
*/
@@ -243,7 +243,7 @@ declare var AbortSignal: {
243243
prototype: AbortSignal;
244244
new(): AbortSignal;
245245
/**
246-
* The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
246+
* The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
247247
*
248248
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
249249
*/
@@ -1122,13 +1122,13 @@ declare var TextDecoderStream: {
11221122
};
11231123

11241124
/**
1125-
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
1125+
* The **`TextEncoder`** interface enables you to encode a JavaScript string using UTF-8.
11261126
*
11271127
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
11281128
*/
11291129
interface TextEncoder extends TextEncoderCommon {
11301130
/**
1131-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
1131+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Uint8Array containing the string encoded using UTF-8.
11321132
*
11331133
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
11341134
*/
@@ -1233,7 +1233,7 @@ declare var TransformStreamDefaultController: {
12331233
};
12341234

12351235
/**
1236-
* The **`URL`** interface is used to parse, construct, normalize, and encode URL.
1236+
* The **`URL`** interface is used to parse, construct, normalize, and encode URLs.
12371237
*
12381238
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
12391239
*/
@@ -1245,7 +1245,7 @@ interface URL {
12451245
*/
12461246
hash: string;
12471247
/**
1248-
* The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL.
1248+
* The **`host`** property of the URL interface is a string containing the host, which is the hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the port of the URL.
12491249
*
12501250
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
12511251
*/
@@ -1771,7 +1771,7 @@ interface Console {
17711771
*/
17721772
count(label?: string): void;
17731773
/**
1774-
* The **`console.countReset()`** static method resets counter used with console/count_static.
1774+
* The **`console.countReset()`** static method resets counter used with console.count().
17751775
*
17761776
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
17771777
*/
@@ -1801,7 +1801,7 @@ interface Console {
18011801
*/
18021802
error(...data: any[]): void;
18031803
/**
1804-
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
1804+
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console.groupEnd() is called.
18051805
*
18061806
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
18071807
*/
@@ -1843,13 +1843,13 @@ interface Console {
18431843
*/
18441844
time(label?: string): void;
18451845
/**
1846-
* The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static.
1846+
* The **`console.timeEnd()`** static method stops a timer that was previously started by calling console.time().
18471847
*
18481848
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
18491849
*/
18501850
timeEnd(label?: string): void;
18511851
/**
1852-
* The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static.
1852+
* The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console.time().
18531853
*
18541854
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
18551855
*/

0 commit comments

Comments
 (0)