View Javadoc
1   package com.github.searls.jasmine.coffee;
2   
3   import org.apache.commons.lang3.StringUtils;
4   
5   public class DetectsCoffee {
6   
7     public boolean detect(String path) {
8       return StringUtils.endsWith(StringUtils.substringBefore(path, "?"), ".coffee");
9     }
10  
11  }