Skip to content

Commit

Permalink
Fix elpa parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jun 11, 2024
1 parent 719abd7 commit c6c7d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repology/parsers/parsers/elpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _parse_data(data: str) -> list[_PackageData]:
keyval_keywords = (lpar + Suppress(':keywords') + ZeroOrMore(qstring) + rpar).setParseAction(lambda s, l, t: [('keywords', [str(k) for k in t])])
keyval_commit = (lpar + Suppress(':commit') + dot + qstring + rpar).setParseAction(lambda s, l, t: [('commit', t[0])])
keyval_maintainer = (lpar + Suppress(':maintainer') + people_list + rpar).setParseAction(lambda s, l, t: [('maintainer', [str(m) for m in t])])
keyval_maintainers = (lpar + Suppress(':maintainers') + lpar + people_list + rpar + rpar).setParseAction(lambda s, l, t: [('maintainers', [str(m) for m in t])])
keyval_maintainers = (lpar + Suppress(':maintainer') + OneOrMore(lpar + people_list + rpar) + rpar).setParseAction(lambda s, l, t: [('maintainers', [str(m) for m in t])])
keyval_author = (lpar + Suppress(':author') + people_list + rpar).setParseAction(lambda s, l, t: [('author', [str(a) for a in t])])
keyval_authors = (lpar + Suppress(':authors') + OneOrMore(lpar + people_list + rpar) + rpar).setParseAction(lambda s, l, t: [('authors', [str(a) for a in t])])

Expand Down

0 comments on commit c6c7d47

Please sign in to comment.