Skip to content

Incorrect parsing of symbol entryName in symbol library #129

@jkreucher

Description

@jkreucher

When parsing symbol libraries, the libId() function incorrectly interprets symbol names that contain underscores followed by numeric segments, even when the symbol is not intended to represent a child symbol.

For example, when parsing a symbol library containing a symbol named "ABC_00_00_00" the current parsing logic mistakenly classifies it as a child symbol and splits it incorrectly into:

entryName = "ABC_00"
unitId = 0
styleId = 0

Steps to Reproduce

  • Create a symbol library with a symbol named ABC_00_00_00
  • Parse the library using SymbolLib.from_file()
  • Observe that Symbol.entryName is incorrectly parsed and split into name and numeric suffixes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions