diff --git a/indigo-plugin/indigo-plugin/src/indigoplugin/generators/EmbedData.scala b/indigo-plugin/indigo-plugin/src/indigoplugin/generators/EmbedData.scala index 523504100..2fea2b1f0 100644 --- a/indigo-plugin/indigo-plugin/src/indigoplugin/generators/EmbedData.scala +++ b/indigo-plugin/indigo-plugin/src/indigoplugin/generators/EmbedData.scala @@ -204,7 +204,7 @@ object DataType { private val isBoolean: Regex = """^(true|false)$""".r private val isDouble: Regex = """^([0-9]+?)\.([0-9]+)$""".r private val isInt: Regex = """^([0-9]+)$""".r - private val isNull: Regex = """^(null)$""".r + private val isNull: Regex = """^$""".r def decideType: String => DataType = { case isBoolean(v) => BooleanData(v.toBoolean) diff --git a/indigo-plugin/indigo-plugin/test/src/indigoplugin/generators/EmbedDataTests.scala b/indigo-plugin/indigo-plugin/test/src/indigoplugin/generators/EmbedDataTests.scala index 9f13db61c..254373936 100644 --- a/indigo-plugin/indigo-plugin/test/src/indigoplugin/generators/EmbedDataTests.scala +++ b/indigo-plugin/indigo-plugin/test/src/indigoplugin/generators/EmbedDataTests.scala @@ -84,7 +84,7 @@ class EmbedDataTests extends munit.FunSuite { } test("Extract row data - csv - simple") { - val row = " abc,123, def,456.5 ,ghi789,true ,.,null, ," + val row = " abc,123, def,456.5 ,ghi789,true ,.,, ," val actual = EmbedData.extractRowData(row, ",")