aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/cmdline/LabelValidator.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/cmdline/LabelValidator.java b/src/main/java/com/google/devtools/build/lib/cmdline/LabelValidator.java
index e9c0db32cd..8ef3c91e4c 100644
--- a/src/main/java/com/google/devtools/build/lib/cmdline/LabelValidator.java
+++ b/src/main/java/com/google/devtools/build/lib/cmdline/LabelValidator.java
@@ -16,9 +16,7 @@ package com.google.devtools.build.lib.cmdline;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.CharMatcher;
-
import java.util.Objects;
-
import javax.annotation.Nullable;
/**
@@ -26,10 +24,8 @@ import javax.annotation.Nullable;
*/
public final class LabelValidator {
- /**
- * Matches punctuation in target names which requires quoting in a blaze query.
- */
- private static final CharMatcher PUNCTUATION_REQUIRING_QUOTING = CharMatcher.anyOf("+,=~");
+ /** Matches punctuation in target names which requires quoting in a blaze query. */
+ private static final CharMatcher PUNCTUATION_REQUIRING_QUOTING = CharMatcher.anyOf("+,=~#");
/**
* Matches punctuation in target names which doesn't require quoting in a blaze query.