version bump 1.1.2: cleanup

This commit is contained in:
SheetJS 2018-02-20 18:13:09 -05:00
parent 350978bd98
commit 01a9c9ecdb
13 changed files with 17 additions and 14 deletions

View File

@ -1,5 +1,6 @@
language: node_js
node_js:
- "9"
- "8"
- "7"
- "6"

View File

@ -264,10 +264,10 @@ Combining the various extensions yields the following regular expression:
```perl
/%(?:
%| # literal %% (flags etc prohibited)
(\d+\$)? # positional parameter
([1-9]\d*\$)? # positional parameter
([-+ 0\x23\x27]*)? # flags
(\d*|\*(?:\d+\$)?) # width
(?:\.(\d+|\*(?:\d+\$)?))? # precision
([1-9]\d*|\*(?:[1-9]\d*\$)?)? # width
(?:\.(\d+|\*(?:[1-9]\d*\$)?))? # precision
(hh?|ll?|[LzjtqZIw])? # length
([diouxXfFeEgGaAcCsSpnDUOmbByYJVT]) # conversion specifier
)/x

View File

@ -1 +1 @@
PRINTJ.version = '1.1.1';
PRINTJ.version = '1.1.2';

View File

@ -1,3 +1,3 @@
var REGEX/*:RegExp*/ = /%(?:%|(\d+\$)?([-+ 0#']*)?(\d*|\*(?:\d+\$)?)(?:\.(\d+|\*(?:\d+\$)?))?(hh?|ll?|[LzjtqZIw])?([diouxXfFeEgGaAcCsSpnDUOmbByYJVT]))/g;
/* |A------AB----------BC----------------CD-----------------------DE-------------------EF---------------------------------F| */
var REGEX/*:RegExp*/ = /%(?:%|([1-9]\d*\$)?([-+ 0#']*)?([1-9]\d*|\*(?:[1-9]\d*\$)?)?(?:\.(\d+|\*(?:[1-9]\d*\$)?))?(hh?|ll?|[LzjtqZIw])?([diouxXfFeEgGaAcCsSpnDUOmbByYJVT]))/g;
/* |A-----------AB----------BC---------------------------CD----------------------------DE-------------------EF---------------------------------F| */

View File

@ -25,7 +25,7 @@ var PRINTJ;
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.1.1';
PRINTJ.version = '1.1.2';
function tokenize(fmt) {
var out = [];

View File

@ -54,7 +54,7 @@ describe('correctness', function() {
IMPL.forEach(function(n,i) {
var impl = IMPLA[i];
it(n, function() {
PRINTF.forEach(function(v) {
for(var i = 0; i < 5; ++i) PRINTF.forEach(function(v) {
if(impl.sprintf.apply(impl, v[0]) != v[1]) {
if(isopera() && v[0][0].match(/^%.*[Aa]$/)) return;
console.log(v);

2
dist/printj.js vendored
View File

@ -25,7 +25,7 @@ var PRINTJ;
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.1.1';
PRINTJ.version = '1.1.2';
function tokenize(fmt) {
var out = [];

2
dist/printj.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,7 @@
[
"loop_char",
"loop_code",
"index_char",
"index_code",
"regex"
]

View File

@ -1,6 +1,6 @@
{
"name": "printj",
"version": "1.1.1",
"version": "1.1.2",
"author": "sheetjs",
"description": "Pure-JS printf",
"keywords": [

View File

@ -27,7 +27,7 @@ var PRINTJ/*:PRINTJModule*/;
/*jshint ignore:end */
}(function(PRINTJ/*:PRINTJModule*/) {
PRINTJ.version = '1.1.1';
PRINTJ.version = '1.1.2';
function tokenize(fmt/*:string*/)/*:ParsedFmt*/ {
var out/*:ParsedFmt*/ = [];

View File

@ -25,7 +25,7 @@ var PRINTJ;
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.1.1';
PRINTJ.version = '1.1.2';
function tokenize(fmt) {
var out = [];

View File

@ -54,7 +54,7 @@ describe('correctness', function() {
IMPL.forEach(function(n,i) {
var impl = IMPLA[i];
it(n, function() {
PRINTF.forEach(function(v) {
for(var i = 0; i < 5; ++i) PRINTF.forEach(function(v) {
if(impl.sprintf.apply(impl, v[0]) != v[1]) {
if(isopera() && v[0][0].match(/^%.*[Aa]$/)) return;
console.log(v);