Skip to content

Commit

Permalink
fix: matches
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Dec 30, 2021
1 parent 393a7e4 commit 944b1b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/border-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { Style } from '@master/style';
import { BORDER, DASH, STYLE } from './constants/css-property-keyword';

export class BorderStyleStyle extends Style {
static override matches = /^b-style:.|b(order)?:(dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;)/;
static override matches = /^(b-style:.|b(order)?:(dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;))/;
static override key = BORDER + DASH + STYLE;
}
2 changes: 1 addition & 1 deletion src/font-weight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DASH, FONT, WEIGHT } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class FontWeightStyle extends Style {
static override matches = /^f-weight:.|f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)(?!;)/;
static override matches = /^(f-weight:.|f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)(?!;))/;
static override key = FONT + DASH + WEIGHT;
static override unit = '';
static override values = {
Expand Down
2 changes: 1 addition & 1 deletion src/scroll-margin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DASH, MARGIN, SCROLL } from './constants/css-property-keyword';
import { B, BOTTOM, L, LEFT, R, RIGHT, T, TOP, X, Y } from './constants/direction';

export class ScrollMarginStyle extends Style {
static override matches = /^scroll-(m(x|y|t|b|l|r)|m(argin)?(-(top|bottom|left|right))?):./;
static override matches = /^(scroll-(m(x|y|t|b|l|r)|m(argin)?(-(top|bottom|left|right))?):.)/;
override get props(): { [key: string]: any } {
if (this.prefix.slice(-3, -2) === 'm') {
const SCROLL_MARGIN_PREFIX = SCROLL + DASH + MARGIN + DASH,
Expand Down
2 changes: 1 addition & 1 deletion src/scroll-padding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DASH, PADDING, SCROLL } from './constants/css-property-keyword';
import { B, BOTTOM, L, LEFT, R, RIGHT, T, TOP, X, Y } from './constants/direction';

export class ScrollPaddingStyle extends Style {
static override matches = /^scroll-(p(x|y|t|b|l|r)|p(adding)?(-(top|bottom|left|right))?):./;
static override matches = /^(scroll-(p(x|y|t|b|l|r)|p(adding)?(-(top|bottom|left|right))?):.)/;
override get props(): { [key: string]: any } {
if (this.prefix.slice(-3, -2) === 'p') {
const SCROLL_PADDING_PREFIX = SCROLL + DASH + PADDING + DASH,
Expand Down

0 comments on commit 944b1b1

Please sign in to comment.