Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-moncel committed Nov 26, 2024
1 parent 7d5961d commit 5e5a439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/_example/src/forest/customizations/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default (collection: CardCustomizer) =>
.addAction('Create new card', {
scope: 'Global',
execute: (context, resultBuilder) => {
console.log(context);

return resultBuilder.success('ok');
},
form: [
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/utils/query-string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class QueryStringParser {

try {
const forestContextUrl = context.request.headers['forest-context-url'] as string;
[, , project, environment] = /https:\/\/([^\/]*)\/([^\/]*)\/([^\/]*)/.exec(forestContextUrl);
[, , project, environment] = /https:\/\/([^/]*)\/([^/]*)\/([^/]*)/.exec(forestContextUrl);
} catch (error) {
// Silent error, as this is not critical.
// Just like in v1, Forest-Context-Url is not always available.
Expand Down

0 comments on commit 5e5a439

Please sign in to comment.