Revert "improve regexp for detecting slug"

This reverts commit 062f43ad982d37d42ee3aac413c30e2df7dec225.