Permalink
Browse files

Revert "protocol prefix test was incorrect"

This reverts commit bd945f4.
  • Loading branch information...
1 parent bd945f4 commit 3836d8d972c37c99e28cec0fc3dc889a8bc0c853 @thatcher committed Mar 27, 2009
Binary file not shown.
Binary file not shown.
@@ -108,9 +108,7 @@ public Object callGlobalFunction(String methodName, Object[] args) {
}
private void processFile(String fileName){
- if(!(fileName.startsWith("file:") ||
- fileName.startsWith("http:") ||
- fileName.startsWith("https:"))){
+ if(!fileName.matches("^(file|http|https)")){
String absoluteFileName = this.basePath + fileName;
this.processAbsoluteFile(absoluteFileName);
}else{
View
Binary file not shown.

0 comments on commit 3836d8d

Please sign in to comment.