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
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public class SeriesInfoExtractorServiceImpl implements SeriesInfoExtractorServic
68
68
private static final Pattern PRICE_WITH_SPACES = Pattern .compile ("([0-9]) ([0-9])" );
69
69
70
70
// Regular expression that matches Rubles (Russian currency).
71
- private static final Pattern RUB_CURRENCY_REGEXP = Pattern .compile ("[0-9][ ]?руб " );
71
+ private static final Pattern RUB_CURRENCY_REGEXP = Pattern .compile ("[0-9][ ]?р(уб| \\ .) " );
72
72
73
73
// CheckStyle: ignore LineLength for next 4 lines
74
74
private static final Pattern VALID_CATEGORY_NAME_EN = Pattern .compile (CategoryValidation .NAME_EN_REGEXP );
Original file line number Diff line number Diff line change @@ -671,6 +671,7 @@ class SeriesInfoExtractorServiceImplTest extends Specification {
671
671
' 100 руб' | _
672
672
' 200руб' | _
673
673
' 660 руб.' | _
674
+ ' 800 р.' | _
674
675
}
675
676
676
677
}
You can’t perform that action at this time.
0 commit comments