{"size": 351, "ext": "js", "max_stars_repo_path": "lib/match.js", "max_stars_repo_name": "neffets/converjon", "max_stars_repo_stars_event_min_datetime": "2015-01-30T08:06:15.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-04T02:34:40.000Z", "max_issues_repo_path": "lib/match.js", "max_issues_repo_name": "neffets/converjon", "max_issues_repo_issues_event_min_datetime": "2015-01-05T13:41:43.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-25T12:36:04.000Z", "max_forks_repo_path": "lib/match.js", "max_forks_repo_name": "neffets/converjon", "max_forks_repo_forks_event_min_datetime": "2015-05-06T08:04:36.000Z", "max_forks_repo_forks_event_max_datetime": "2018-06-13T12:53:05.000Z"}
{"max_stars_count": 38, "max_issues_count": 72, "max_forks_count": 10, "avg_line_length": 21.9375, "max_line_length": 48, "alphanum_fraction": 0.5925925926}
/* jshint globalstrict: true */
/* global require */
/* global module */
"use strict";

var calmcard = require("calmcard");

module.exports = function(pattern, key) {
    if (pattern.substr(0,2) === "~ ") {
        pattern = new RegExp(pattern.substr(2));
        return pattern.test(key);
    } else {
        return calmcard(pattern, key);
    }
};
