allow up to exact max comment length

pull/24/head
Zlatin Balevsky 2019-10-30 21:20:09 +00:00
parent ae651cb6bd
commit 11007e5f19
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class HasherService {
return
if (fileManager.fileToSharedFile.containsKey(canonical))
return
if (canonical.getName().endsWith(".mwcomment") && canonical.length() < Constants.MAX_COMMENT_LENGTH)
if (canonical.getName().endsWith(".mwcomment") && canonical.length() <= Constants.MAX_COMMENT_LENGTH)
eventBus.publish(new SideCarFileEvent(file : canonical))
else if (hashed.add(canonical))
executor.execute( { -> process(canonical) } as Runnable)