mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes #3696
This commit is contained in:
parent
a25de423f2
commit
23130aa6bd
2 changed files with 4 additions and 3 deletions
|
|
@ -2522,9 +2522,10 @@ def commonFinderOnly(initial, sequence):
|
|||
Returns parts of sequence which start with the given initial string
|
||||
|
||||
>>> commonFinderOnly("abcd", ["abcdefg", "foobar", "abcde"])
|
||||
['abcdefg', 'abcde']
|
||||
'abcde'
|
||||
"""
|
||||
return longestCommonPrefix([_ for _ in sequence if _.startswith(initial)])
|
||||
|
||||
return longestCommonPrefix(*[_ for _ in sequence if _.startswith(initial)])
|
||||
|
||||
def pushValue(value):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue