mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint and dependency fix
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
parent
b7a636dd74
commit
75beacfa7c
1
package-lock.json
generated
1
package-lock.json
generated
@ -35694,6 +35694,7 @@
|
|||||||
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
||||||
"@k8slens/logger": "^1.0.0-alpha.5",
|
"@k8slens/logger": "^1.0.0-alpha.5",
|
||||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||||
|
"@ogre-tools/fp": "^16.1.0",
|
||||||
"@ogre-tools/injectable": "^16.1.0",
|
"@ogre-tools/injectable": "^16.1.0",
|
||||||
"byline": "^5.0.0",
|
"byline": "^5.0.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
|
|||||||
@ -39,6 +39,7 @@
|
|||||||
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
||||||
"@k8slens/logger": "^1.0.0-alpha.5",
|
"@k8slens/logger": "^1.0.0-alpha.5",
|
||||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||||
|
"@ogre-tools/fp": "^16.1.0",
|
||||||
"@ogre-tools/injectable": "^16.1.0",
|
"@ogre-tools/injectable": "^16.1.0",
|
||||||
"byline": "^5.0.0",
|
"byline": "^5.0.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
|
|||||||
@ -4,14 +4,14 @@
|
|||||||
*/
|
*/
|
||||||
export const getMatchFor =
|
export const getMatchFor =
|
||||||
(...patterns: RegExp[]) =>
|
(...patterns: RegExp[]) =>
|
||||||
(reference: string) => {
|
(reference: string) => {
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
const match = reference.match(pattern);
|
const match = reference.match(pattern);
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
return match;
|
return match;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user