8 lines
141 B
JavaScript
8 lines
141 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(a, b) {
|
|
a = String(a);
|
|
b = String(b);
|
|
var re = new RegExp(b + '$');
|
|
return !!re.exec(a);
|
|
};
|