beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhalp...@apache.org
Subject [1/2] beam git commit: [BEAM-2277] Fix URI_SCHEME_PATTERN in FileSystems
Date Fri, 12 May 2017 18:10:56 GMT
Repository: beam
Updated Branches:
  refs/heads/master 42066431b -> 0acf3620d


[BEAM-2277] Fix URI_SCHEME_PATTERN in FileSystems


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/6a90b9d1
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/6a90b9d1
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/6a90b9d1

Branch: refs/heads/master
Commit: 6a90b9d164d98d916d0e0af2be39a740ce769076
Parents: 4206643
Author: Aviem Zur <aviemzur@gmail.com>
Authored: Fri May 12 16:02:54 2017 +0300
Committer: Dan Halperin <dhalperi@google.com>
Committed: Fri May 12 11:10:45 2017 -0700

----------------------------------------------------------------------
 .../core/src/main/java/org/apache/beam/sdk/io/FileSystems.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/6a90b9d1/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java
index 2e11177..08e0def 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileSystems.java
@@ -67,7 +67,7 @@ public class FileSystems {
 
   public static final String DEFAULT_SCHEME = "default";
   private static final Pattern URI_SCHEME_PATTERN = Pattern.compile(
-      "(?<scheme>[a-zA-Z][-a-zA-Z0-9+.]*)://.*");
+      "(?<scheme>[a-zA-Z][-a-zA-Z0-9+.]*):/.*");
 
   private static final AtomicReference<Map<String, FileSystem>> SCHEME_TO_FILESYSTEM
=
       new AtomicReference<Map<String, FileSystem>>(


Mime
View raw message