Permalink
Browse files

anyDoubles now checks for double-like strings

This will eventually be the basis of the doubleish type, but for now this
will apply to everything.
  • Loading branch information...
LadyCailin committed Feb 9, 2019
1 parent b24666b commit 46f59931be8624be50a5e8f4b5ff60fdf014a4d7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/ArgumentValidation.java
@@ -415,7 +415,7 @@ public static String getString(Mixed c, Target t) {
*/
public static boolean anyDoubles(Mixed... c) {
for(Mixed c1 : c) {
if(c1 instanceof CDouble) {
if(c1 instanceof CDouble || c1 instanceof CString && c1.val().indexOf(".", 1) > -1) {
return true;
}
}

0 comments on commit 46f5993

Please sign in to comment.