correct regex for id completion

fixes #491