File tree Expand file tree Collapse file tree 2 files changed +2
-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 +2
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class SeriesInfoExtractorServiceImpl implements SeriesInfoExtractorServic
56
56
// Year should be in range within 1840 and 2099 inclusive.
57
57
// CheckStyle: ignore LineLength for next 2 lines
58
58
private static final Pattern RELEASE_DATE_REGEXP =
59
- Pattern .compile ("((?<day>[0-9]{2})\\ .(?<month>[0-9]{2})\\ .)?(?<year>18[4-9][0-9]|19[0-9]{2}|20[0-9]{2})(г(од|\\ .)?)?" );
59
+ Pattern .compile ("((?<day>[0-9]{2})\\ .(?<month>[0-9]{2})\\ .)?(?<year>18[4-9][0-9]|19[0-9]{2}|20[0-9]{2})(г(од|\\ .)?| \\ . )?" );
60
60
61
61
// Regular expression matches number of the stamps in a series (from 1 to 999).
62
62
// CheckStyle: ignore LineLength for next 2 lines
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ class SeriesInfoExtractorServiceImplTest extends Specification {
288
288
' 2010\t\t brazil' | _
289
289
' 2010 brazil' | _
290
290
' prehistoric animals 2010 congo' | _
291
+ ' 2010.' | _
291
292
' 2010г' | _
292
293
' 2010г.' | _
293
294
' 2010год' | _
You can’t perform that action at this time.
0 commit comments