We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11217bf commit 62e7713Copy full SHA for 62e7713
README.md
@@ -25,8 +25,10 @@ After that, we can register a simple data type:
25
```java
26
registry.register(BigDecimal.class, InlineValue.<BigDecimal>builder()
27
.matches(text -> {
28
+ if (!text.startsWith("bigDecimal(") && !text.endsWith(")")) return false;
29
+
30
try {
- new BigDecimal(text);
31
+ new BigDecimal(text.substring(11, text.length() - 1);
32
return true;
33
} catch (final Exception e) {
34
return false;
0 commit comments