File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
google/cloud/firestore_v1 Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 3131_ESCAPED_BACKTICK = _BACKSLASH + _BACKTICK
3232
3333_SIMPLE_FIELD_NAME = re .compile ("^[_a-zA-Z][_a-zA-Z0-9]*$" )
34- _LEADING_ALPHA_INVALID = re .compile ("^[_a-zA-Z][_a-zA-Z0-9]*[^_a-zA-Z0-9]" )
3534PATH_ELEMENT_TOKENS = [
3635 ("SIMPLE" , r"[_a-zA-Z][_a-zA-Z0-9]*" ), # unquoted elements
3736 ("QUOTED" , r"`(?:\\`|[^`])*?`" ), # quoted elements, unquoted
@@ -309,12 +308,6 @@ def from_string(cls, path_string: str):
309308 for element in elements :
310309 if not element :
311310 raise ValueError ("Empty element" )
312- if _LEADING_ALPHA_INVALID .match (element ):
313- raise ValueError (
314- "Non-alphanum char in element with leading alpha: {}" .format (
315- element
316- )
317- )
318311 return FieldPath (* elements )
319312
320313 def __repr__ (self ):
You can’t perform that action at this time.
0 commit comments