Skip to content

Commit be06ca7

Browse files
author
Bhargav
authored
Merge pull request #4 from dkin-om/development
v2.0.0
2 parents bd28040 + bfde19d commit be06ca7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0
2+
3+
- Stable null safety release
4+
15
## 2.0.0-nullsafety.1
26

37
- Fixed `areValidSymbols` function

lib/src/to_roman.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class ToRoman extends InvertibleFunction<int, String> {
3232

3333
@override
3434
String valueAt(int x) {
35+
if (x == 0) return '';
36+
3537
final List<String> result = <String>[];
3638

3739
int n = x;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: romanice
2-
version: 2.0.0-nullsafety.1
2+
version: 2.0.0
33
description: A Dart library for converting to/from Roman numerals, e.g., 3888 ↔ MMMDCCCLXXXVIII
44
repository: https://github.com/dkin-om/romanice-dart.git
55
issue_tracker: https://github.com/dkin-om/romanice-dart/issues

0 commit comments

Comments
 (0)