Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code scanning alert no. 28: Inefficient regular expression #2262

Merged
merged 5 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Publish to coveralls.io
if: github.repository == 'IgniteUI/ignite-ui' && matrix.node-version == '20.x'
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v1.2.1
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/infragistics.templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
Use $.ig.regExp.sub.exec(tmpl) in order to get the substitution element in the tmpl string
*/
nonEncodeSub: /\{\{html\s+([\w\$\-]+(\.|\s)?[\w\$\-]*)+\}\}/,
forSub: /\$\{(([\w\$]+\.[\w\$]*)+)\}/,
forSub: /\$\{(([\w\$]+\.[\w\$]+)+)\}/,
Fixed Show fixed Hide fixed
arg: /args\[\d+\](?!.*\+)/,
/* type="RegExp" Matches any block directive in the template
Use $.ig.regExp.block.exec(tmpl) in order to get the block directive in the tmpl string
Expand Down
Loading