mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Correct a regex.
\d can match more than just [0-9].
This commit is contained in:
parent
d229a5a7d4
commit
1ff90e1641
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ PysolRandom = MTRandom
|
||||||
|
|
||||||
# construct Random from seed string
|
# construct Random from seed string
|
||||||
def constructRandom(s):
|
def constructRandom(s):
|
||||||
m = re.match(r"ms(\d+)\n?\Z", s);
|
m = re.match(r"ms([0-9]+)\n?\Z", s);
|
||||||
if m:
|
if m:
|
||||||
seed = long(m.group(1))
|
seed = long(m.group(1))
|
||||||
if 0 <= seed <= LCRandom31.MAX_SEED:
|
if 0 <= seed <= LCRandom31.MAX_SEED:
|
||||||
|
|
Loading…
Add table
Reference in a new issue