rootCircle / docFiller

Automated Google Docs Filling Web Extension written in JS
GNU General Public License v3.0
10 stars 14 forks source link

Added the getTitle and getDescription Functions in FieldsExtractorEngine Class #4

Closed real-Vansh-Khare closed 1 year ago

real-Vansh-Khare commented 1 year ago

The getTitle function extracts the title of a given question DOM node. The getDescription function extracts the description of a given question DOM node based on the DOM tree. These functions seem to work for all types of questions.

rootCircle commented 1 year ago

Your code also catches the extra * for fields that are mandatory, its purpose serves no part of question and can poison the question itself.

Can you fix that?

rootCircle commented 1 year ago

Did some changes, now getDescription() return null rather than err string to remove ambiguity Rest good

rootCircle commented 1 year ago

Congratulations for your first PR in this repo! Merging now