Skip to content

Commit 67bd099

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: fix MDN links to avoid redirections
developer.mozilla.org/en/... -> developer.mozilla.org/en-US/... PR-URL: #18631 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent ff05d54 commit 67bd099

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

doc/api/assert.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,11 @@ For more information, see
720720

721721
[`Error.captureStackTrace`]: errors.html#errors_error_capturestacktrace_targetobject_constructoropt
722722
[`Error`]: errors.html#errors_class_error
723-
[`Map`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map
723+
[`Map`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
724724
[`Object.is()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
725725
[`RegExp`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
726-
[`Set`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Set
727-
[`Symbol`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol
726+
[`Set`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
727+
[`Symbol`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol
728728
[`TypeError`]: errors.html#errors_class_typeerror
729729
[`assert.deepEqual()`]: #assert_assert_deepequal_actual_expected_message
730730
[`assert.deepStrictEqual()`]: #assert_assert_deepstrictequal_actual_expected_message

doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3481,7 +3481,7 @@ The following constants are meant for use with the [`fs.Stats`][] object's
34813481
[Caveats]: #fs_caveats
34823482
[Common System Errors]: errors.html#errors_common_system_errors
34833483
[FS Constants]: #fs_fs_constants_1
3484-
[MDN-Date]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date
3484+
[MDN-Date]: https://developer.mozilla.org/en-US/JavaScript/Reference/Global_Objects/Date
34853485
[MDN-Number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type
34863486
[MSDN-Rel-Path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths
34873487
[Readable Streams]: stream.html#stream_class_stream_readable

doc/api/intl.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,17 @@ to be helpful:
190190

191191
["ICU Data"]: http://userguide.icu-project.org/icudata
192192
[`--icu-data-dir`]: cli.html#cli_icu_data_dir_file
193-
[`Date.prototype.toLocaleString()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
194-
[`Intl`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl
193+
[`Date.prototype.toLocaleString()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
194+
[`Intl`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl
195195
[`Intl.DateTimeFormat`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
196196
[`NODE_ICU_DATA`]: cli.html#cli_node_icu_data_file
197-
[`Number.prototype.toLocaleString()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
197+
[`Number.prototype.toLocaleString()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
198198
[`require('buffer').transcode()`]: buffer.html#buffer_buffer_transcode_source_fromenc_toenc
199199
[`require('util').TextDecoder`]: util.html#util_class_util_textdecoder
200-
[`String.prototype.localeCompare()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare
201-
[`String.prototype.normalize()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
202-
[`String.prototype.toLowerCase()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase
203-
[`String.prototype.toUpperCase()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
200+
[`String.prototype.localeCompare()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare
201+
[`String.prototype.normalize()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
202+
[`String.prototype.toLowerCase()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase
203+
[`String.prototype.toUpperCase()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
204204
[BUILDING.md]: https://github.com/nodejs/node/blob/master/BUILDING.md
205205
[BUILDING.md#full-icu]: https://github.com/nodejs/node/blob/master/BUILDING.md#build-with-full-icu-support-all-locales-supported-by-icu
206206
[ECMA-262]: https://tc39.github.io/ecma262/

doc/api/url.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ console.log(myURL.origin);
11441144
```
11451145

11461146
[`Error`]: errors.html#errors_class_error
1147-
[`JSON.stringify()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1147+
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
11481148
[`Map`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
11491149
[`TypeError`]: errors.html#errors_class_typeerror
11501150
[`URLSearchParams`]: #url_class_urlsearchparams

doc/api/util.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ Deprecated predecessor of `console.log`.
12171217
[`Array.isArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
12181218
[`Buffer.isBuffer()`]: buffer.html#buffer_class_method_buffer_isbuffer_obj
12191219
[`Error`]: errors.html#errors_class_error
1220-
[`Object.assign()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
1220+
[`Object.assign()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
12211221
[`assert.deepStrictEqual()`]: assert.html#assert_assert_deepstrictequal_actual_expected_message
12221222
[`console.error()`]: console.html#console_console_error_data_args
12231223
[`console.log()`]: console.html#console_console_log_data_args
@@ -1228,5 +1228,5 @@ Deprecated predecessor of `console.log`.
12281228
[Customizing `util.inspect` colors]: #util_customizing_util_inspect_colors
12291229
[Internationalization]: intl.html
12301230
[WHATWG Encoding Standard]: https://encoding.spec.whatwg.org/
1231-
[constructor]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor
1231+
[constructor]: https://developer.mozilla.org/en-US/JavaScript/Reference/Global_Objects/Object/constructor
12321232
[semantically incompatible]: https://github.com/nodejs/node/issues/4179

0 commit comments

Comments
 (0)