Browse files

Change the filename matching regex to pick up files that don't necess…

…arily have one of our matching extensions... we'll try this one out for a while
  • Loading branch information...
1 parent 485d884 commit bc49fc77f4dfe4e2b9ef7a99108750cfa584844b @matburt committed May 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/matburt/mobileorg/Synchronizers/Synchronizer.java
View
2 src/com/matburt/mobileorg/Synchronizers/Synchronizer.java
@@ -194,7 +194,7 @@ else if (storageMode.equals("sdcard")) {
}
HashMap<String, String> getOrgFilesFromMaster(String master) {
- Pattern getOrgFiles = Pattern.compile("\\[file:(.*?\\.(?:org|pgp|gpg|enc))\\]\\[(.*?)\\]\\]");
+ Pattern getOrgFiles = Pattern.compile("\\[file:(.*?)\\]\\[(.*?)\\]\\]");
Matcher m = getOrgFiles.matcher(master);
HashMap<String, String> allOrgFiles = new HashMap<String, String>();
while (m.find()) {

0 comments on commit bc49fc7

Please sign in to comment.