Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Jan 4, 2018
2 parents ec2e83e + 23deb36 commit 858b562
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -202,7 +202,7 @@ export declare namespace be {
function alphanumeric(value: string): boolean;
function alpha(value: string): boolean;
function startWith(value: string, string: string, insensitive: boolean): boolean;
function endWith(value: string, string: string, insensitive: boolean): boolean;
function endWith(value: string, string: string, insensitive?: boolean): boolean;
function palindrome(value: string): boolean;
function char(value: string): boolean;
function space(value: string): boolean;
Expand Down
5 changes: 5 additions & 0 deletions test/strings.js
Expand Up @@ -394,6 +394,11 @@ describe('endWith', function () {
console.log(result);
assert.equal(result, true);
});
it('symbol ?, should be return true', function () {
var result = be.endWith('?', 'string?');
console.log(result);
assert.equal(result, true);
});
});

describe('char', function () {
Expand Down

0 comments on commit 858b562

Please sign in to comment.