fix: typos (#1526)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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.`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user