We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9399752 commit bc52a10Copy full SHA for bc52a10
src/lib/utils.js
@@ -5,7 +5,7 @@
5
* @param suffix the suffix to check.
6
* @return {boolean}
7
*/
8
-const endsWith = (str, suffix) => str.indexOf(suffix, str.length - suffix.length) === 0;
+const endsWith = (str, suffix) => str.indexOf(suffix, str.length - suffix.length) >= 0;
9
10
/**
11
* Normalizes the given keyPrefix to a defined format.
0 commit comments