Skip to content

Commit 93359e4

Browse files
committed
Ensure link is CTRL-clickable
Some UIs automatically linkify the link. However, a trailing `.` is included in the link. This ensures the link is separated by whitespace.
1 parent 725ae27 commit 93359e4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/__tests__/render.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('render API', () => {
234234
expect(() => {
235235
render(<div />, {legacyRoot: true})
236236
}).toThrowErrorMatchingInlineSnapshot(
237-
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, and you need help with upgrading your app, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide.`,
237+
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.`,
238238
)
239239
})
240240

@@ -259,7 +259,7 @@ describe('render API', () => {
259259
expect(() => {
260260
render(ui, {container, hydrate: true, legacyRoot: true})
261261
}).toThrowErrorMatchingInlineSnapshot(
262-
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, and you need help with upgrading your app, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide.`,
262+
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.`,
263263
)
264264
})
265265
})

src/__tests__/renderHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ testGateReact19('legacyRoot throws', () => {
108108
},
109109
).result
110110
}).toThrowErrorMatchingInlineSnapshot(
111-
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, and you need help with upgrading your app, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide.`,
111+
`\`legacyRoot: true\` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.`,
112112
)
113113
})

src/pure.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function render(
211211
const error = new Error(
212212
'`legacyRoot: true` is not supported in this version of React. ' +
213213
'If your app runs React 19 or later, you should remove this flag. ' +
214-
'If your app runs React 18 or earlier, and you need help with upgrading your app, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide.',
214+
'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.',
215215
)
216216
Error.captureStackTrace(error, render)
217217
throw error
@@ -278,7 +278,7 @@ function renderHook(renderCallback, options = {}) {
278278
const error = new Error(
279279
'`legacyRoot: true` is not supported in this version of React. ' +
280280
'If your app runs React 19 or later, you should remove this flag. ' +
281-
'If your app runs React 18 or earlier, and you need help with upgrading your app, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide.',
281+
'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.',
282282
)
283283
Error.captureStackTrace(error, renderHook)
284284
throw error

0 commit comments

Comments
 (0)