Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Autopsy
Commits
12fe1e96
Commit
12fe1e96
authored
1 year ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Patches
Plain Diff
license code validation and trim
parent
aa50a172
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTLicenseDialog.java
+3
-2
3 additions, 2 deletions
...ybertriage/autopsy/ctoptions/ctcloud/CTLicenseDialog.java
with
3 additions
and
2 deletions
Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTLicenseDialog.java
+
3
−
2
View file @
12fe1e96
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
*/
*/
class
CTLicenseDialog
extends
javax
.
swing
.
JDialog
{
class
CTLicenseDialog
extends
javax
.
swing
.
JDialog
{
private
static
final
Pattern
LICENSE_PATTERN
=
Pattern
.
compile
(
"^\\s*[a-zA-Z0-9
\\
-]+?\\s*$"
);
private
static
final
Pattern
LICENSE_PATTERN
=
Pattern
.
compile
(
"^\\s*[a-zA-Z0-9-
_
]+?\\s*$"
);
private
String
licenseString
=
null
;
private
String
licenseString
=
null
;
/**
/**
...
@@ -191,7 +191,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
...
@@ -191,7 +191,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}
// </editor-fold>//GEN-END:initComponents
}
// </editor-fold>//GEN-END:initComponents
private
void
okButtonActionPerformed
(
java
.
awt
.
event
.
ActionEvent
evt
)
{
//GEN-FIRST:event_okButtonActionPerformed
private
void
okButtonActionPerformed
(
java
.
awt
.
event
.
ActionEvent
evt
)
{
//GEN-FIRST:event_okButtonActionPerformed
this
.
licenseString
=
this
.
licenseNumberTextField
.
getText
();
String
inputText
=
this
.
licenseNumberTextField
.
getText
();
this
.
licenseString
=
inputText
==
null
?
null
:
inputText
.
trim
();
this
.
dispose
();
this
.
dispose
();
}
//GEN-LAST:event_okButtonActionPerformed
}
//GEN-LAST:event_okButtonActionPerformed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment