File tree Expand file tree Collapse file tree 4 files changed +50
-10
lines changed Expand file tree Collapse file tree 4 files changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const { registerWalker } = require('../walker');
1414
1515const Node = require ( './Node' ) ;
1616
17- const unitRegex = / % | c h | c m | e m | e x | i n | m m | p c | p t | p x | r e m | v h | v m a x | v m i n | v w $ / i;
17+ const unitRegex = / % | c h | c m | e m | e x | i n | m m | p c | p t | p x | q | r e m | v h | v m a x | v m i n | v w $ / i;
1818
1919class Numeric extends Node {
2020 constructor ( options = { } ) {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = {
2222 '-2px' ,
2323 '-16px' ,
2424 '-16px -1px -1px -16px' ,
25+ '10q' ,
2526 '1e10' ,
2627 '1E10' ,
2728 '1e-10' ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Generated by [AVA](https://ava.li).
6969 input: Input {
7070 css: '-.567800E-0012780em',
7171 hasBOM: false,
72- id: '<input css 19 >',
72+ id: '<input css 20 >',
7373 },
7474 start: {
7575 column: 1,
@@ -375,7 +375,7 @@ Generated by [AVA](https://ava.li).
375375 input: Input {
376376 css: '.1E+10',
377377 hasBOM: false,
378- id: '<input css 21 >',
378+ id: '<input css 22 >',
379379 },
380380 start: {
381381 column: 1,
@@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li).
414414 input: Input {
415415 css: '.1E-10',
416416 hasBOM: false,
417- id: '<input css 20 >',
417+ id: '<input css 21 >',
418418 },
419419 start: {
420420 column: 1,
@@ -505,6 +505,45 @@ Generated by [AVA](https://ava.li).
505505 },
506506 ]
507507
508+ ## 10q
509+
510+ > Snapshot 1
511+
512+ '10q'
513+
514+ > Snapshot 2
515+
516+ '10q'
517+
518+ > Snapshot 3
519+
520+ [
521+ Numeric {
522+ raws: {
523+ after: '',
524+ before: '',
525+ },
526+ source: {
527+ end: {
528+ column: 1,
529+ line: 1,
530+ },
531+ input: Input {
532+ css: '10q',
533+ hasBOM: false,
534+ id: '<input css 13>',
535+ },
536+ start: {
537+ column: 1,
538+ line: 1,
539+ },
540+ },
541+ type: 'numeric',
542+ unit: 'q',
543+ value: '10',
544+ },
545+ ]
546+
508547## 1E+10
509548
510549> Snapshot 1
@@ -531,7 +570,7 @@ Generated by [AVA](https://ava.li).
531570 input: Input {
532571 css: '1E+10',
533572 hasBOM: false,
534- id: '<input css 18 >',
573+ id: '<input css 19 >',
535574 },
536575 start: {
537576 column: 1,
@@ -570,7 +609,7 @@ Generated by [AVA](https://ava.li).
570609 input: Input {
571610 css: '1E-10',
572611 hasBOM: false,
573- id: '<input css 16 >',
612+ id: '<input css 17 >',
574613 },
575614 start: {
576615 column: 1,
@@ -609,7 +648,7 @@ Generated by [AVA](https://ava.li).
609648 input: Input {
610649 css: '1E10',
611650 hasBOM: false,
612- id: '<input css 14 >',
651+ id: '<input css 15 >',
613652 },
614653 start: {
615654 column: 1,
@@ -648,7 +687,7 @@ Generated by [AVA](https://ava.li).
648687 input: Input {
649688 css: '1e+10',
650689 hasBOM: false,
651- id: '<input css 17 >',
690+ id: '<input css 18 >',
652691 },
653692 start: {
654693 column: 1,
@@ -687,7 +726,7 @@ Generated by [AVA](https://ava.li).
687726 input: Input {
688727 css: '1e-10',
689728 hasBOM: false,
690- id: '<input css 15 >',
729+ id: '<input css 16 >',
691730 },
692731 start: {
693732 column: 1,
@@ -726,7 +765,7 @@ Generated by [AVA](https://ava.li).
726765 input: Input {
727766 css: '1e10',
728767 hasBOM: false,
729- id: '<input css 13 >',
768+ id: '<input css 14 >',
730769 },
731770 start: {
732771 column: 1,
You can’t perform that action at this time.
0 commit comments