@@ 111-126 (lines=16) @@ | ||
108 | * |
|
109 | * {@inheritdoc} |
|
110 | */ |
|
111 | protected function sanitizeDescription($string) |
|
112 | { |
|
113 | $description = parent::sanitizeDescription($string); |
|
114 | if (strpos($description, '/REMI/USTD//') !== false |
|
115 | && preg_match('#/REMI/USTD//(.*?)/#s', $description, $results) && !empty($results[1]) |
|
116 | ) { |
|
117 | return $results[1]; |
|
118 | } |
|
119 | if (strpos($description, '/REMI/STRD/CUR/') !== false |
|
120 | && preg_match('#/REMI/STRD/CUR/(.*?)/#s', $description, $results) && !empty($results[1]) |
|
121 | ) { |
|
122 | return $results[1]; |
|
123 | } |
|
124 | ||
125 | return $description; |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * Overloaded: Is applicable if first line has INGB. |
@@ 129-144 (lines=16) @@ | ||
126 | * |
|
127 | * {@inheritdoc} |
|
128 | */ |
|
129 | protected function sanitizeDescription($string) |
|
130 | { |
|
131 | $description = parent::sanitizeDescription($string); |
|
132 | if (strpos($description, '/REMI/') !== false |
|
133 | && preg_match('#/REMI/(.*?)(/((PURP|ISDT|CSID|RTRN)/)|$)#s', $description, $results) && !empty($results[1]) |
|
134 | ) { |
|
135 | return $results[1]; |
|
136 | } |
|
137 | if (strpos($description, '/EREF/') !== false |
|
138 | && preg_match('#/EREF/(.*?)/(ORDP)/#s', $description, $results) && !empty($results[1]) |
|
139 | ) { |
|
140 | return $results[1]; |
|
141 | } |
|
142 | ||
143 | return $description; |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * Overloaded: Is applicable if first line has :940:. |