We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069a7ed commit e6dda18Copy full SHA for e6dda18
src/lib/helpers.ts
@@ -1,12 +1,10 @@
1
import { Address, Slice, Cell } from "ton-core";
2
import examples from "../routes/(examples)/examples.json";
3
-import path from "path";
4
5
export function getExample(page: string) {
6
- const id = path.basename(path.dirname(page));
7
let i;
8
for (i = 0; i < examples.length; i++) {
9
- if (examples[i].id == id) break;
+ if (page.includes(examples[i].id)) break;
10
}
11
return {
12
self: examples[i],
0 commit comments