mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.35k stars 1.22k forks source link

Bugs/fix 2487 allow contains whitespaces #2498

Closed JKamsker closed 1 week ago

JKamsker commented 3 weeks ago

Fixes #2487 and contains a minor perf improvement

pictos commented 3 weeks ago

@JKamsker we do have a failing build, can you verify the reason?

JKamsker commented 3 weeks ago

@JKamsker we do have a failing build, can you verify the reason?

Debug builds just fine, release doesnt. Because: https://github.com/mbdavid/LiteDB/blob/610e530bb2d70be9718777dff0ebaba66a3d9cdd/LiteDB/Utils/Constants.cs#L7-L10 And CreateEngine in https://github.com/mbdavid/LiteDB/blob/fad6af353d86514faa90e46e3db1efb73369331e/LiteDB.Tests/Issues/Issue2487_Tests.cs#L22

Which is internal https://github.com/mbdavid/LiteDB/blob/610e530bb2d70be9718777dff0ebaba66a3d9cdd/LiteDB/Client/Structures/ConnectionString.cs#L110

@pictos Do you think its safe to remove the #if DEBUG in Constants ? Otherwise we cant test release builds. I Have no idea whats the benefit of InternalsVisibleTo when you cant use it half of the time.