Manual fixes to GPTs search cache
This commit is contained in:
@@ -105,6 +105,7 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) {
|
|||||||
|
|
||||||
case '0xF8':
|
case '0xF8':
|
||||||
link += `${name.replace(/ /g, "_")}`;
|
link += `${name.replace(/ /g, "_")}`;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
link += `${name.replace(/ /g, "_")}_Register`;
|
link += `${name.replace(/ /g, "_")}_Register`;
|
||||||
}
|
}
|
||||||
@@ -121,7 +122,7 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) {
|
|||||||
modes: [],
|
modes: [],
|
||||||
issue_4_only: false,
|
issue_4_only: false,
|
||||||
source: [],
|
source: [],
|
||||||
search: "",
|
search: firstLine.toLowerCase(),
|
||||||
wiki_link: "",
|
wiki_link: "",
|
||||||
text: "",
|
text: "",
|
||||||
notes: [],
|
notes: [],
|
||||||
|
|||||||
@@ -9,14 +9,15 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
|
|||||||
|
|
||||||
for (const line of descriptionLines) {
|
for (const line of descriptionLines) {
|
||||||
reg.source.push(line);
|
reg.source.push(line);
|
||||||
reg.search += line.toLowerCase() + " ";
|
|
||||||
|
|
||||||
const trimmedLine = line.trim();
|
const trimmedLine = line.trim();
|
||||||
|
if (trimmedLine.startsWith('//')) continue;
|
||||||
|
|
||||||
|
reg.search += line.toLowerCase() + " ";
|
||||||
const spaces_at_start = line.match(/^(\s*)/)?.[0].length || 0;
|
const spaces_at_start = line.match(/^(\s*)/)?.[0].length || 0;
|
||||||
|
|
||||||
if (line.includes('Issue 4 Only')) reg.issue_4_only = true;
|
if (line.includes('Issue 4 Only')) reg.issue_4_only = true;
|
||||||
|
|
||||||
if (trimmedLine.startsWith('//')) continue;
|
|
||||||
|
|
||||||
if (trimmedLine.startsWith('(R)')) {
|
if (trimmedLine.startsWith('(R)')) {
|
||||||
if (currentAccess) {
|
if (currentAccess) {
|
||||||
|
|||||||
Reference in New Issue
Block a user