:detect option
empty string to nil in detect, unless it's surrounded by slashes