Fix typo in comment and error message.
GITHUB_BREAKING_CHANGES=None.
@@ -43,13 +43,13 @@ final class V1JsExprTranslator {
private static final SoyErrorKind UNSUPPORTED_OPERATOR =
SoyErrorKind.of(
- "''v1Expression'' no longer supports the ''and'', ''or'' or ''and'' operators. "
+ "''v1Expression'' no longer supports the ''and'', ''or'' or ''not'' operators. "
+ "Move the operator outside of the ''v1Expression'' or migrate to a v2 expression "
+ "to access this functionality.");
/** Regex for a template variable or data reference. */
- // 2 capturing groups: first part (excluding '$'), rest
- // Example: $boo.foo.goo ==> group(1) == "boo", group(2) == ".foo.goo"
+ // 1 capturing group: first part (excluding '$')
+ // Example: $boo.foo.goo ==> group(1) == "boo"
private static final String VAR_RE = "\\$([a-zA-Z_][a-zA-Z0-9_]*)";
/** Regex pattern for a template variable or data reference. */
