개정판 aa9f1081
issue #49: fix allowable
Change-Id: Iddcd7bc1c45ae67e1c963e2e97183ad5a57c2bfc
DTI_PID/DTI_PID/CodeTables.py | ||
---|---|---|
45 | 45 |
else: |
46 | 46 |
if value[3][0]: |
47 | 47 |
match = re.search(value[3][0], text) |
48 |
if match: |
|
48 |
if match and match.start() is 0:
|
|
49 | 49 |
return value[1], value[1] |
50 | 50 |
|
51 | 51 |
return None, None |
... | ... | |
72 | 72 |
else: |
73 | 73 |
if value[3][0]: |
74 | 74 |
match = re.search(value[3][0], text) |
75 |
if match: |
|
75 |
if match and match.start() is 0 and match.end() is len(text):
|
|
76 | 76 |
return value[1] |
77 | 77 |
|
78 | 78 |
return None |
내보내기 Unified diff