Make searching just more robust, by making it a lot dumber
This commit is contained in:
@@ -8,11 +8,13 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
|
||||
const detail: RegisterDetail = { read: undefined, write: undefined, common: undefined, text: ''};
|
||||
|
||||
for (const line of descriptionLines) {
|
||||
if (line.includes('Issue 4 Only')) reg.issue_4_only = true;
|
||||
|
||||
const spaces_at_start = line.match(/^(\s*)/)?.[0].length || 0;
|
||||
const trimmedLine = line.trim();
|
||||
reg.source.push(line);
|
||||
reg.search += line + " ";
|
||||
|
||||
const trimmedLine = line.trim();
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user