Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rockyzsu/stock
/ valid_code
Method
valid_code
common/SecurityBase.py:13–20 ·
view source on GitHub ↗
(self,code)
Source
from the content-addressed store, hash-verified
11
pass
12
13
def
valid_code(self,code):
14
pattern = re.search(
'(\d{6})'
, code)
15
if
pattern:
16
code = pattern.group(1)
17
else
:
18
code = None
19
20
return
code
Callers
1
diagnose
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected