Restrict last slash.