Skip to content

Commit

Permalink
chore: fix extension regex (#3544)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Jan 31, 2023
1 parent ae2cca1 commit 31231dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDocExample} from '@taiga-ui/addon-doc';
import {tuiKitIcons} from '@taiga-ui/icons';

@Component({
Expand All @@ -12,7 +11,7 @@ import {tuiKitIcons} from '@taiga-ui/icons';
export class IconSetComponent {
readonly exampleSanitizer = import('./examples/sanitizer/sanitizer.md?raw');

readonly example1: TuiDocExample = {
readonly example1 = {
'process-icons.js': import('./examples/1/process-icons.js.md?raw'),
'process-icons.ts': import('./examples/1/process-icons.ts.md?raw'),
TypeScript: import('./examples/1/index.ts?raw'),
Expand Down
2 changes: 1 addition & 1 deletion projects/eslint-plugin/rules/strict-tui-doc-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const fileNameToExtension = {
* @param {string} path
* @returns {RegExpMatchArray | null}
*/
const getPathGroups = path => path.match(/(.+)(\.(?:ts|less|scss|js|html))(.*)/);
const getPathGroups = path => path.match(/(.+)(\.(?:ts|less|scss|js|md|css|html))(.*)/);

/**
* @type {import(`eslint`).Rule.RuleModule}
Expand Down

0 comments on commit 31231dc

Please sign in to comment.