Function isKebabCase

校验是否是短杠拼接且非是开头或者结尾的字符

isKebabCase('hello-world') // true
isKebabCase('HelloWorld') // false
isKebabCase('hello-world_') // false
isKebabCase('-hello-world-') // false
isKebabCase('hello') // true
isKebabCase('hello--world') // false