Skip to content

Commit

Permalink
update STARTS_A_TAG_NAME_REGEX
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
romainmenke and ybiquitous committed Jul 4, 2023
1 parent 00019bf commit 185cdea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/selector-type-case/index.js
Expand Up @@ -22,7 +22,7 @@ const meta = {
fixable: true,
};

const STARTS_A_TAG_NAME_REGEX = /(?:[^.#[:\w-]|^)\w/;
const STARTS_A_TAG_NAME_REGEX = /(?:[^.#[:a-zA-Z-]|^)[a-zA-Z]/;
const ANY_UPPER_CASE_REGEX = /[A-Z]/;
const ANY_LOWER_CASE_REGEX = /[a-z]/;

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/selector-type-no-unknown/index.js
Expand Up @@ -24,7 +24,7 @@ const meta = {
url: 'https://stylelint.io/user-guide/rules/selector-type-no-unknown',
};

const STARTS_A_TAG_NAME_REGEX = /(?:[^.#[:\w-]|^)\w/;
const STARTS_A_TAG_NAME_REGEX = /(?:[^.#[:a-zA-Z-]|^)[a-zA-Z]/;

/** @type {import('stylelint').Rule} */
const rule = (primary, secondaryOptions) => {
Expand Down

0 comments on commit 185cdea

Please sign in to comment.