Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
32 changes: 32 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CodeQL

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
- cron: "24 3 * * 1"

permissions:
security-events: write
packages: read
actions: read
contents: read

jobs:
analyze:
name: Analyze JavaScript
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
2 changes: 1 addition & 1 deletion .github/workflows/promote-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
exit 1

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand Down
3 changes: 2 additions & 1 deletion src/components/RSkills.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function colorize(text) {
}
function colorVal(s) {
const out = [];
// Match either a double-quoted string (group 1) or a number (integer/decimal, group 2).
const re = /("[^"]*")|(\b\d+\.\d+\b|\b\d+\b)/g;
let last = 0;
let mm;
Expand All @@ -148,7 +149,7 @@ export default function RSkills() {
const [active, setActive] = useState(KINDS[0].kind);
// Auto-cycle through the kinds every 3s until the user picks a tab.
const [autoplay, setAutoplay] = useState(true);
const current = KINDS.find((k) => k.kind === active);
const current = KINDS.find((k) => k.kind === active) || KINDS[0];

useEffect(() => {
if (!autoplay || reduce) return;
Expand Down