You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gives ParsingError: Unsupported type of line: [7]"ABC 1.2.3;1"
I'd like to parse it literally, with no comment.
I can't add the section to dataSections because the name is dynamic. So maybe make dataSections: string[] | ((name: string) => boolean) 🤔
The text was updated successfully, but these errors were encountered:
Hello. Sorry, I don't clearly understand your idea.
I thought to add an option to pass a middleware. The parser calls the middleware before the ParsingError to give a possibility to solve it.
Middleware will be look smth like (line: string, currentSection: string | $Proto, currentIniObject: IniObject) => bool.
I mean to add an option to pass to a dataSections not only a predefined list of names but also a callback that would decide if given section is a data section.
Or an option which would allow having semicolons inside lines.
Or both.
Or, if the parser itself does not choke on such expressions, then the validation callback would also work.
Line:
Gives
ParsingError: Unsupported type of line: [7]"ABC 1.2.3;1"
I'd like to parse it literally, with no comment.
I can't add the section to
dataSections
because the name is dynamic. So maybe makedataSections: string[] | ((name: string) => boolean)
🤔The text was updated successfully, but these errors were encountered: