This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* isMatch.js | |
* | |
* Evan Steinkerchner - 2015 | |
* https://gist.github.com/Roundaround/87835b53690135aa0529 | |
* | |
* A string matching function that utilizes a variety of methods to provide 'intelligent' | |
* string matching functionality. A pair of strings will be considered a match when either: | |
* | |
* 1. the strings are both phoenetically similar as per the double metaphone algorithm, and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
Parser: function () { | |
var self = this; | |
self.parse = function (str) { | |
var hash = { | |
_: [], | |
_flags: [], | |
_trailing: '' | |
}; |