version bump 1.1.2: cleanup
This commit is contained in:
parent
350978bd98
commit
01a9c9ecdb
@ -1,5 +1,6 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "9"
|
||||
- "8"
|
||||
- "7"
|
||||
- "6"
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
PRINTJ.version = '1.1.1';
|
||||
PRINTJ.version = '1.1.2';
|
||||
|
@ -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| */
|
||||
|
||||
|
@ -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 = [];
|
||||
|
@ -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
2
dist/printj.js
vendored
@ -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
2
dist/printj.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,7 @@
|
||||
[
|
||||
"loop_char",
|
||||
"loop_code",
|
||||
"index_char",
|
||||
"index_code",
|
||||
"regex"
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "printj",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"author": "sheetjs",
|
||||
"description": "Pure-JS printf",
|
||||
"keywords": [
|
||||
|
@ -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*/ = [];
|
||||
|
@ -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
test.js
2
test.js
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user