Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyfa-org/Pyfa
/ arabicOrRomanToInt
Function
arabicOrRomanToInt
gui/characterEditor.py:54–60 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
52
53
54
def
arabicOrRomanToInt(s):
55
m = re.match(r
'\d+$'
, s)
56
if
m:
57
i = int(s)
58
else
:
59
i = roman.fromRoman(s)
60
return
i
61
62
63
class
CharacterTextValidor(BaseValidator):
Callers
1
importSkills
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected