File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
main/java/ru/mystamps/web/feature/series/importing
test/groovy/ru/mystamps/web/feature/series/importing Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ public class SeriesInfoExtractorServiceImpl implements SeriesInfoExtractorServic
51
51
protected static final int MAX_SUPPORTED_RELEASE_YEAR = 2099 ;
52
52
53
53
// Regular expression matches release year of the stamps (from 1840 till 2099).
54
+ // CheckStyle: ignore LineLength for next 2 lines
54
55
private static final Pattern RELEASE_YEAR_REGEXP =
55
- Pattern .compile ("(?<year>18[4-9][0-9]|19[0-9]{2}|20[0-9]{2})(г(од|\\ .)?)?" );
56
+ Pattern .compile ("([0-9]{2} \\ .[0-9]{2} \\ .)?( ?<year>18[4-9][0-9]|19[0-9]{2}|20[0-9]{2})(г(од|\\ .)?)?" );
56
57
57
58
// Regular expression matches number of the stamps in a series (from 1 to 999).
58
59
// CheckStyle: ignore LineLength for next 2 lines
Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ class SeriesInfoExtractorServiceImplTest extends Specification {
295
295
' 2010год' | _
296
296
' Палау 2010, 2 малых листа' | _
297
297
' test,2010' | _
298
+ ' 01.02.2010' | _
298
299
}
299
300
300
301
@SuppressWarnings (' UnnecessaryGetter' )
You can’t perform that action at this time.
0 commit comments