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