We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bef5a5 commit 6b139a9Copy full SHA for 6b139a9
src/Utils-spec.ts
@@ -95,7 +95,6 @@ describe('Utils', () => {
95
});
96
97
it('*Address', () => {
98
- debugger;
99
let event = { type:'usage', source:'about' };
100
expect(Utils.stringify(event, ['*Address'])).toBe(JSON.stringify(event));
101
src/Utils.ts
@@ -149,7 +149,8 @@ export class Utils {
149
}
150
151
if (startsWithWildcard) {
152
- return input.lastIndexOf(pattern) === (input.length - pattern.length);
+ let lastIndexOf = input.lastIndexOf(pattern);
153
+ return lastIndexOf !== -1 && lastIndexOf === (input.length - pattern.length);
154
155
156
if (endsWithWildcard) {
0 commit comments