patch update

This commit is contained in:
JasterV 2022-03-22 09:51:43 +01:00
parent d8a0cb802f
commit aed3342b64
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<h1 align="center">Welcome to imgphash 👋</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-0.3.0-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-0.3.1-blue.svg?cacheSeconds=2592000" />
<a href="https://github.com/JasterV/imgphash#readme" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>

View file

@ -7,7 +7,8 @@
"javascript",
"phash",
"hashing",
"images"
"images",
"image-phash"
],
"author": "Victor Martinez <jaster.victor@gmail.com>",
"license": "MIT",
@ -32,4 +33,4 @@
"url": "https://github.com/JasterV/imgphash/issues"
},
"homepage": "https://github.com/JasterV/imgphash#readme"
}
}

View file

@ -14,7 +14,7 @@ class PHash {
"Can't construct a PHash instance with a non-binary string value"
);
}
this.hash = hash;
this.hash = hash.trim();
}
compare(other) {