ticucumber
Version:
TiCucumber: Cucumber for Appc Alloy.
23 lines (17 loc) • 421 B
JavaScript
/*
* ticucumber
* https://github.com/codexlabs/TiCucumber
*
* Copyright (c) 2013 Andrew McElroy
* License: MIT
*/
exports.version = '1.3.0';
;
exports.test = function(string) {
if (typeof string !== 'string') {
return false;
}
string = string.match(/[a-z0-9]/gi).join('').toLowerCase();
return string === string.split('').reverse().join('');
};
exports.fail = function(){};