개정판 c67b54b5
issue #49: fix regular ex
Change-Id: I1179ea2db9d694c20d7a03f15b685e165e9f78fa
DTI_PID/DTI_PID/CodeTables.py | ||
---|---|---|
40 | 40 |
if text.startswith(value[1]): |
41 | 41 |
return value[1], value[1] |
42 | 42 |
else: |
43 |
match = re.search(value[1], text) |
|
43 |
match = re.search(value[1], text, re.DOTALL)
|
|
44 | 44 |
if match and match.start() is 0: |
45 | 45 |
return text[:match.end()], text[:match.end()] |
46 | 46 |
|
... | ... | |
50 | 50 |
return value[1], matches[0] |
51 | 51 |
else: |
52 | 52 |
if value[3][0]: |
53 |
match = re.search(value[3][0], text) |
|
53 |
match = re.search(value[3][0], text, re.DOTALL)
|
|
54 | 54 |
if match and match.start() is 0: |
55 | 55 |
return value[1], text[:match.end()] |
56 | 56 |
|
... | ... | |
73 | 73 |
if text == value[1]: |
74 | 74 |
return value[1] |
75 | 75 |
else: |
76 |
match = re.search(value[1], text) |
|
76 |
match = re.search(value[1], text, re.DOTALL)
|
|
77 | 77 |
if match and match.start() is 0 and match.end() is len(text): |
78 | 78 |
return text |
79 | 79 |
|
... | ... | |
83 | 83 |
return value[1] |
84 | 84 |
else: |
85 | 85 |
if value[3][0]: |
86 |
match = re.search(value[3][0], text) |
|
86 |
match = re.search(value[3][0], text, re.DOTALL)
|
|
87 | 87 |
if match and match.start() is 0 and match.end() is len(text): |
88 | 88 |
return value[1] |
89 | 89 |
|
내보내기 Unified diff