Merge pull request #11944 from therealrinku/typo-fixes

minor typo fixes
This commit is contained in:
Isaiah Hamilton authored and GitHub committed 2023-02-01 23:01:47 -05:00
commit f9a2ca02fd
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ export function dart(Prism: any) {
className,
{
// variables and parameters
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
// supports class names (or generic parameters) which do not contain a lower case letter (also works for methods)
pattern: RegExp(packagePrefix + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),
lookbehind: true,
inside: className.inside,
+1 -1
View File
@@ -39,7 +39,7 @@ export const getIdentity = (gotrueUser: User) => {
}
// NOTE: do not use any imports in this function,
// as it is use standalone in the documents head
// as it is used standalone in the documents head
export const getReturnToPath = (fallback = '/projects') => {
const searchParams = new URLSearchParams(location.search)
let returnTo = searchParams.get('returnTo') ?? fallback
+2 -2
View File
@@ -110,7 +110,7 @@ export const filterSensitiveProjectProps = (project: any) => {
}
/**
* Returns undefine if the string isn't parse-able
* Returns undefined if the string isn't parse-able
*/
export const tryParseInt = (str: string) => {
try {
@@ -120,7 +120,7 @@ export const tryParseInt = (str: string) => {
}
}
// Used as checker for memoised components
// Used as checker for memoized components
export const propsAreEqual = (prevProps: any, nextProps: any) => {
try {
Object.keys(prevProps).forEach((key) => {