allow period at the start of a symbol (#40)

This commit is contained in:
Jean de Klerk 2018-07-06 13:41:22 -07:00 committed by Joshua Humphries
parent 2ff725abb2
commit b709105be9
1 changed files with 4 additions and 0 deletions

View File

@ -369,6 +369,10 @@ func main() {
symbols = svcs
}
for _, s := range symbols {
if s[0] == '.' {
s = s[1:]
}
dsc, err := descSource.FindSymbol(s)
if err != nil {
fail(err, "Failed to resolve symbol %q", s)