FIXES: palindrome abc -> abccba (#831)
* FIXES: palindrome abc -> abccba * FIXES: tests for palindrome --------- Co-authored-by: Bernhard Wagner <gitcommit@nosuch.biz>
This commit is contained in:
parent
b374cdf47c
commit
1bca05e349
4 changed files with 40 additions and 27 deletions
|
|
@ -1985,7 +1985,7 @@ Pattern.prototype.hush = function () {
|
|||
* note("c d e g").palindrome()
|
||||
*/
|
||||
export const palindrome = register('palindrome', function (pat) {
|
||||
return pat.every(2, rev);
|
||||
return pat.lastOf(2, rev);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue