Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test-opencode:
node --test opencode/tests/*.test.mjs

test-raycast:
cd raycast && npm ci && npm test && npm run lint && npm run build
cd raycast && npm ci && npm test && npm run lint && npm run build && npm run typecheck

validate: test
git diff --check
1 change: 1 addition & 0 deletions raycast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"typecheck": "tsc --noEmit",
"test": "tsx --test tests/*.test.ts",
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
"publish": "npx @raycast/api@latest publish"
Expand Down
2 changes: 1 addition & 1 deletion raycast/src/search-symbol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function typedInstrument(query: string, index: SymbolIndex | undefined): Instrum
// A typed "^FTSE" is an index whatever its exchange, so the Indices filter keeps it.
if (symbol.startsWith("^")) return { symbol, market: "index", kind: "index", name: symbol, exchange: null };
const suffix = /\.([A-Z]+)$/.exec(symbol)?.[1];
const market = (suffix && SUFFIX_MARKETS[suffix]) ?? "us";
const market = (suffix ? SUFFIX_MARKETS[suffix] : undefined) ?? "us";
return { symbol, market, kind: "equity", name: symbol, exchange: null };
}

Expand Down
Loading