Skip to content

Commit 21c9d2f

Browse files
Potential fix for pull request finding 'CodeQL / Inefficient regular expression'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f71caf7 commit 21c9d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/modules/forms/ix-forms/constants/tn-select-option-test-id.constant.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { TnSelectOption } from '@truenas/ui-components';
44
import { optionTestIdByLabel } from 'app/modules/forms/ix-forms/constants/tn-select-option-test-id.constant';
55

66
/** Opening tag of a `tn-select` / `tn-autocomplete`, skipping over quoted attribute values. */
7-
const selectOpeningTagRegex = /<tn-(?:select|autocomplete)(?=[\s>])(?:"[^"]*"|'[^']*'|[^>])*>/g;
7+
const selectOpeningTagRegex = /<tn-(?:select|autocomplete)(?=[\s>])(?:"[^"]*"|'[^']*'|[^>"'])*>/g;
88

99
function findRepoRoot(): string {
1010
let current = __dirname;

0 commit comments

Comments
 (0)