fix: typos (#1526)

This commit is contained in:
Lino Le Van
2023-07-26 13:09:42 +00:00
committed by GitHub
parent 1ed93cec88
commit 5ba19abe13
11 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ export async function updateCheck(
// Update current version
checkFile.current_version = version;
// Only check in the specificed interval
// Only check in the specified interval
if (Date.now() >= new Date(checkFile.last_checked).getTime() + interval) {
try {
checkFile.latest_version = await getLatestVersion();
+2 -2
View File
@@ -1063,10 +1063,10 @@ export function pathToPattern(path: string): string {
}
// Disallow neighbouring params like `/[id][bar].tsx` because
// it's ambigious where the `id` param ends and `bar` begins.
// it's ambiguous where the `id` param ends and `bar` begins.
if (part.includes("][")) {
throw new SyntaxError(
`Invalid route pattern: "${path}". A parameter cannot be followed by another parameter without any charactes in between.`,
`Invalid route pattern: "${path}". A parameter cannot be followed by another parameter without any characters in between.`,
);
}