Skip to content

Commit

Permalink
Merge pull request #15 from GangGreenTemperTatum/chore/enable-hyphens…
Browse files Browse the repository at this point in the history
…-in-vars

chore: allow hyphens in sticky names
  • Loading branch information
GangGreenTemperTatum authored Dec 30, 2024
2 parents 786ff77 + 17bd55d commit 1533d19
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class StickyBurpContextMenu(private val tab: StickyBurpTab, private val logging:
return@addActionListener
}

if (!trimmedName.matches(Regex("^[a-zA-Z0-9_]+$"))) {
if (!trimmedName.matches(Regex("^[a-zA-Z0-9_-]+$"))) {
JOptionPane.showMessageDialog(null,
"Sticky name can only contain letters, numbers, and underscores",
"Sticky name can only contain letters, numbers, underscores, and hyphens",
"Invalid Input",
JOptionPane.ERROR_MESSAGE)
return@addActionListener
Expand Down

0 comments on commit 1533d19

Please sign in to comment.