Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*
cache: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node }}
cache: yarn
Expand All @@ -42,7 +42,7 @@ jobs:
PARSER_NO_WATCH: true

- name: Codecov
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkg-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js LTS
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"version": "changeset version && yarn --no-immutable"
},
"devDependencies": {
"@1stg/common-config": "^12.0.0",
"@1stg/common-config": "^13.0.0",
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.28.1",
"@commitlint/cli": "^19.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@markuplint/ml-ast": "^4.4.9",
"@markuplint/parser-utils": "^4.8.6",
"angular-html-parser": "^8.1.0",
"angular-html-parser": "^9.0.0",
"uuid": "^11.1.0"
},
"publishConfig": {
Expand Down
9 changes: 5 additions & 4 deletions packages/angular-parser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,13 @@ const visitor: Visitor = {

const potentialName = name
/**
* remove leading `[attr.`
* Remove leading `[attr.`
*
* @example `<input [attr.type]="type" />`
* @example
* `<input [attr.type]="type" />`
*
* Notice `<input attr.type="number" />` is not same as `<input type="number" />`,
* what means `[]` wrapper is required
* Notice `<input attr.type="number" />` is not same as `<input type="number" />`,
* what means `[]` wrapper is required
*/
.replace(/^\[attr\./, '')
// remove leading `*`, `@`, `[]` and `()` wrapper
Expand Down
3 changes: 1 addition & 2 deletions packages/angular-parser/src/is-custom-element-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const rePCENChar = [
const rePCEN = new RegExp(`^[a-z](?:${rePCENChar})*-(?:${rePCENChar})*$`, 'i')

/**
* valid name of custom element
* Valid name of custom element
*
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
*
Expand All @@ -57,7 +57,6 @@ const rePCEN = new RegExp(`^[a-z](?:${rePCENChar})*-(?:${rePCENChar})*$`, 'i')
*
* ASCII-case-insensitively.
* Originally, it is not possible to define a name including ASCII upper alphas in the custom element, but it is not treated as illegal by the HTML parser.
*
*/
export const isCustomElementName = (tagName: string) => {
switch (tagName) {
Expand Down
Loading
Loading