[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Fixed valid_format checking to support Windows and OSX bundles too (issue #3). Single locales are also supported too (before it would only recognize things like en-US or es-ES).



commit 89a22c67ab4bb75611e0d6efb4002ef963f98d2a
Author: ilv <ilv@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Sun Nov 16 12:16:41 2014 -0300

    Fixed valid_format checking to support Windows and OSX bundles too (issue #3). Single locales are also supported too (before it would only recognize things like en-US or es-ES).
---
 dropbox.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dropbox.py b/dropbox.py
index 6c84751..5393487 100644
--- a/dropbox.py
+++ b/dropbox.py
@@ -31,7 +31,7 @@ def valid_format(file):
 
     """
     m = re.search(
-        'tor-browser-(\w+)\d\d-\d\.\d\.\d_(\w\w)-\w+\.tar\.xz',
+        'tor-browser-(\w+)\d\d-\d\.\d\.\d_(\w\w|\w\w-\w\w)(\.tar\.xz|\.mar)',
         file)
     if m:
         return True



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits