Permalink
Browse files

Update TouchDB-Android/src/com/couchbase/touchdb/TDServer.java

Removed the caret in the parameters to Pattern.matches.
The caret no longer needs to be added to the expression as it is part of the expression.
  • Loading branch information...
1 parent 5c79581 commit a24d56b372b5181e785d5db1bdd3305bbb052f30 @bsquared bsquared committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 TouchDB-Android/src/com/couchbase/touchdb/TDServer.java
@@ -65,7 +65,7 @@ public TDServer(String directoryName) throws IOException {
}
private String pathForName(String name) {
- if((name == null) || (name.length() == 0) || Pattern.matches("^" + LEGAL_CHARACTERS, name)) {
+ if((name == null) || (name.length() == 0) || Pattern.matches(LEGAL_CHARACTERS, name)) {
return null;
}
name = name.replace('/', ':');

0 comments on commit a24d56b

Please sign in to comment.