rule: remove the last slash when compile