We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14a779 commit 1ba2ab3Copy full SHA for 1ba2ab3
jsonpath_ng/ext/string.py
@@ -24,7 +24,7 @@ class DefintionInvalid(Exception):
24
25
26
class Sub(This):
27
- """Regex subtituor
+ """Regex substituor
28
29
Concrete syntax is '`sub(/regex/, repl)`'
30
"""
@@ -80,7 +80,7 @@ def find(self, datum):
80
return [DatumInContext.wrap(value)]
81
82
def __eq__(self, other):
83
- return (isinstance(other, Sub) and self.method == other.method)
+ return (isinstance(other, Split) and self.method == other.method)
84
85
def __repr__(self):
86
return '%s(%r)' % (self.__class__.__name__, self.method)
0 commit comments