<commit_before>/*!
 * filename-regex <https://github.com/regexps/filename-regex>
 *
 * Copyright (c) 2014 <NAME>, contributors.
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function filenameRegex() {
  return /([^\\\/]*?[^\\\/]*?)(\.([^\\\/]*)|$)$/;
};<commit_msg>improve extension matching<commit_after>/*!
 * filename-regex <https://github.com/regexps/filename-regex>
 *
 * Copyright (c) 2014-2015, <NAME>
 * Licensed under the MIT license.
 */

module.exports = function filenameRegex() {
  return /([^\\\/]*?[^\\\/]*?)((\.([^\\\/.]*))*)$/;
};
{'fraction_non_alphanumeric': 0.27399650959860383, 'fraction_numerical': 0.020942408376963352, 'mean_word_length': 3.484375, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2901605', 'n_tokens_mistral': 212, 'n_tokens_neox': 196, 'n_words': 37}