Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update typescript to 4.6.3 #5788

Merged
merged 6 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused vars from fast-web-utilities
  • Loading branch information
chrisdholt committed Apr 26, 2022
commit 54c5c133ce48a8e3d6e3a9a05a496918f61c64cd
19 changes: 0 additions & 19 deletions packages/utilities/fast-web-utilities/src/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,6 @@ export function startsWith(
return stringToSearch.substr(position, searchFor.length) === searchFor;
}

const wordRe = /([A-Z]+[a-z0-9]*|[A-Z]*[a-z0-9]+)/g;

/**
* Matches all instances of the RegExp in the string. Operates similarly to the
* native `String.matchAll`, which is not yet available on all supported
* browsers. Note that the regex *must* be global.
*/
function matchAll(re: RegExp, str: string): string[] {
const matches: string[] = [];

let match: RegExpExecArray | null;
while ((match = re.exec(str))) {
matches.push(match[1]);
}

re.lastIndex = 0;
return matches;
}

/**
* Determines if the specified string is undefined, null, empty, or whitespace.
* True if the value is undefined, null, empty, or whitespace, otherwise false.
Expand Down