<commit_before>/* configure jshint globals */
/* globals numeral */
(function ($) {
    'use strict';

    // Set langauge for Numeral library.
    numeral.language('es');
    numeral.defaultFormat('0,0.00');

    $('.pesetas:not(:has(*)), .pesetas-i:not(:has(*))').each(function () {
        var $this = $(this);

        if ($this.html().match(/[0-9]{1,3}\.[0-9]{2}/) !== null) {
            numeral.language('en');
            var valor = numeral($this.html());
            numeral.language('es');
            $this.html(valor.format());
        }
    });

})(jQuery);<commit_msg>Better regex match, finish at 2 digits after final dot.<commit_after>/* configure jshint globals */
/* globals numeral */
(function ($) {
    'use strict';

    // Set langauge for Numeral library.
    numeral.language('es');
    numeral.defaultFormat('0,0.00');

    $('.pesetas:not(:has(*)), .pesetas-i:not(:has(*))').each(function () {
        var $this = $(this);

        if ($this.html().match(/[0-9]{1,3}\.[0-9]{2}$/) !== null) {
            numeral.language('en');
            var valor = numeral($this.html());
            numeral.language('es');
            $this.html(valor.format());
        }
    });

})(jQuery);
{'fraction_non_alphanumeric': 0.22580645161290322, 'fraction_numerical': 0.01902398676592225, 'mean_word_length': 2.4277620396600565, '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': '7192588', 'n_tokens_mistral': 414, 'n_tokens_neox': 398, 'n_words': 70}