Skip to content

Instantly share code, notes, and snippets.

View grandmastr's full-sized avatar
🎯
Focusing

Israel Akintunde grandmastr

🎯
Focusing
View GitHub Profile
{
"detail": [
{
"type": "model_attributes_type",
"loc": [
"body"
],
"msg": "Input should be a valid dictionary or object to extract fields from",
"input": {
"provider": "ANTHROPIC",
@grandmastr
grandmastr / highlight.ts
Created February 9, 2025 16:43 — forked from evenfrost/highlight.ts
Fuse.js with highlight
const highlight = (fuseSearchResult: any, highlightClassName: string = 'highlight') => {
const set = (obj: object, path: string, value: any) => {
const pathValue = path.split('.');
let i;
for (i = 0; i < pathValue.length - 1; i++) {
obj = obj[pathValue[i]];
}
obj[pathValue[i]] = value;
cobst path = require("path");
module.exports = {
entry: "/app/index.js",
module: {
rules: []
},
plugins: [
],
module.export = {
entry: './app/index.js'
}