File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/ru/mystamps/web/service Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ public class SeriesInfoExtractorServiceImpl implements SeriesInfoExtractorServic
46
46
Pattern .compile ("18[4-9][0-9]|19[0-9]{2}|20[0-9]{2}" );
47
47
48
48
// Regular expression matches number of the stamps in a series (from 1 to 99).
49
- private static final Pattern NUMBER_OF_STAMPS_REGEXP =
50
- Pattern .compile ("([1-9][0-9]?) марок" );
49
+ private static final Pattern NUMBER_OF_STAMPS_REGEXP = Pattern .compile (
50
+ "([1-9][0-9]?)( беззубцовые)? мар(ок|ки)" ,
51
+ Pattern .CASE_INSENSITIVE | Pattern .UNICODE_CASE
52
+ );
51
53
52
54
private final Logger log ;
53
55
private final CategoryService categoryService ;
@@ -196,7 +198,8 @@ protected Boolean extractPerforated(String fragment) {
196
198
197
199
log .debug ("Determining perforation from a fragment: '{}'" , fragment );
198
200
199
- boolean withoutPerforation = StringUtils .contains (fragment , "б/з" );
201
+ boolean withoutPerforation = StringUtils .contains (fragment , "б/з" )
202
+ || StringUtils .containsIgnoreCase (fragment , "беззубцовые" );
200
203
if (withoutPerforation ) {
201
204
log .debug ("Perforation is false" );
202
205
return Boolean .FALSE ;
You can’t perform that action at this time.
0 commit comments