MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / isDigit

Function isDigit

lib/core/common.py:1345–1359  ·  view source on GitHub ↗

Checks if provided (string) value consists of digits (Note: Python's isdigit() is problematic) >>> u'\xb2'.isdigit() True >>> isDigit(u'\xb2') False >>> isDigit('123456') True >>> isDigit('3b3') False

(value)

Source from the content-addressed store, hash-verified

1343 return header == ZIP_HEADER
1344
1345def isDigit(value):
1346 """
1347 Checks if provided (string) value consists of digits (Note: Python's isdigit() is problematic)
1348
1349 >>> u'\xb2'.isdigit()
1350 True
1351 >>> isDigit(u'\xb2')
1352 False
1353 >>> isDigit('123456')
1354 True
1355 >>> isDigit('3b3')
1356 False
1357 """
1358
1359 return re.search(r"\A[0-9]+\Z", value or "") is not None
1360
1361def checkFile(filename, raiseOnError=True):
1362 """

Callers 11

_selectInjectionFunction · 0.90
checkSqlInjectionFunction · 0.90
_goInferenceProxyFunction · 0.90
udfInjectCustomMethod · 0.90
_skeletonSelectionMethod · 0.90
_selectPayloadMethod · 0.90
webInitMethod · 0.90
_configUnionCharFunction · 0.90
_configUnionColsFunction · 0.90
bisectionFunction · 0.90
osPwnMethod · 0.90

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…