<commit_before>'use strict';

module.exports = function (opts) {
	opts = opts || {};
	var regex = '(?:(?:callto|skype):)(?:[a-zA-Z][a-zA-Z0-9\\.,\\-_]{5,31})(?:\\?(?:add|call|chat|sendfile|userinfo))?';

	return opts.exact ? new RegExp('(?:^' + regex + '$)', 'i') :
						new RegExp('(?:^|\\s)?(["\'])?' + regex + '\\1', 'ig');
};<commit_msg>Don't capture whitespace<commit_after>'use strict';

module.exports = function (opts) {
	opts = opts || {};
	var regex = '(?:(?:callto|skype):)(?:[a-zA-Z][a-zA-Z0-9\\.,\\-_]{5,31})(?:\\?(?:add|call|chat|sendfile|userinfo))?';

	return opts.exact ? new RegExp('(?:^' + regex + '$)', 'i') :
						new RegExp('(["\'])?' + regex + '\\1', 'ig');
};
{'fraction_non_alphanumeric': 0.34744525547445254, 'fraction_numerical': 0.017518248175182483, 'mean_word_length': 4.236641221374046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5943648', 'n_tokens_mistral': 302, 'n_tokens_neox': 282, 'n_words': 44}