listname could contain '-'.

fix regex in listname? method.fix regex in listname? method.