Skip to content

Instantly share code, notes, and snippets.

View Roundaround's full-sized avatar

Evan Roundaround

  • EST, United States
View GitHub Profile
@Roundaround
Roundaround / parser.js
Last active August 29, 2015 14:27
Command line parser utilizing a fancy RegExp to tokenize.
module.exports = {
Parser: function () {
var self = this;
self.parse = function (str) {
var hash = {
_: [],
_flags: [],
_trailing: ''
};
/**
* 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.