Skip to content

Commit

Permalink
Merge branch 'feature/IJMP-2067' into 'release/v2.0.2'
Browse files Browse the repository at this point in the history
IJMP-2067: fix URL regular expression

See merge request ijmp/for-mainframe!630
  • Loading branch information
Dzianis Lisiankou committed Dec 30, 2024
2 parents 82b4af4 + 19f179b commit 6b00aa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import javax.swing.JComponent
import javax.swing.JPasswordField
import javax.swing.JTextField

private val urlRegex = Regex("^https?:\\/\\/((([a-zA-Z0-9\\-_]+\\.)+[a-zA-Z]{2,})|(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}))(:\\d+)?((\\/[a-zA-Z0-9\\-_\\.~]+)?)*\\/?\$")
private val urlRegex = Regex("^https?:\\/\\/((([a-zA-Z0-9\\-_]+\\.)+[a-zA-Z]{2,})|(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}))(:\\d+)?(\\/[a-zA-Z0-9\\-_\\.~]+)*\\/?$")
private val maskRegex = Regex("^[A-Za-z\\$\\*%@#][A-Za-z0-9\\-\\$\\*%@#]{0,7}")
private val ussPathRegex = Regex("^/$|^(/[^/]+)+$")
private val forbiddenSymbol = "/"
Expand Down

0 comments on commit 6b00aa4

Please sign in to comment.