Creates an instance of directive props getter.
the full text of the directive previously found with a RegExp
.
the full YASSV configuration object
the full YASSV configuration object
the full text of the directive previously found with a RegExp
.
Object whose keys are the attribute names found in the directive and the values the content of the attributes.
Matches anything between the external quotes of the options
attribute and then removes options from the directiveFullString.
Matches each attribute and value in the directive without the closing quote ("). Then splits the string by ="
to separate the attribute from the value. Checks if the attribute is a supported attribute. If so, adds it to the props, else throws an error in console.
Executes the whole logic to extract all properties and values from the directive.
parse
Replaces any occurance of LANG
with the current lang, if i18n is enabled
Replaces any occurance of USERNAME
in the directive string with the value set in YASSB config
Analyzes a YASSB formatted HTML comment and extracts the relevant attributes and values