fixing findString()
This commit is contained in:
parent
a27d08f036
commit
cce4cbc1e1
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ def findRegexp(string, regexp):
|
||||||
result = match.group(1)
|
result = match.group(1)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def findString(string, string0, string1):
|
def findString(string, string0, string1 = ''):
|
||||||
return findRegexp(string, re.escape(string0) + '(.*?)' + re.escape(string1))
|
return findRegexp(string, re.escape(string0) + '(.*?)' + re.escape(string1))
|
||||||
|
|
||||||
# Capitalizes the first letter of a string.
|
# Capitalizes the first letter of a string.
|
||||||
|
|
Loading…
Reference in a new issue