Skip to content

Commit

Permalink
feat: ✨ match numbers and symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackphil committed Nov 28, 2022
1 parent 4767c60 commit 3086296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default class JumpToLink extends Plugin {
}

// test if keypress is capitalized
if (/^[a-z]$/i.test(event.key)) {
if (/^[\w\S\W]$/i.test(event.key)) {
const isCapital = event.shiftKey;
if (isCapital) {
// capture uppercase
Expand Down

0 comments on commit 3086296

Please sign in to comment.