We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec82b6 commit da564eeCopy full SHA for da564ee
Project/Sources/Classes/URL.4dm
@@ -40,14 +40,6 @@ Function _init()
40
41
Function parse($inURL : Text)
42
43
- This._init()
44
-
45
- // Before parsing, check if the URL is empty or valid
46
- var $isValid : Boolean:=Match regex("^(https?|wss?):\\/\\/([^\\s\\/?#]+)([^\\s]*)$"; $inURL)
47
- If (Not($isValid))
48
- return
49
- End if
50
51
// Parse the URL into its components
52
// Example: https://username:[email protected]:8080/path/to/resource?query=param#ref
53
// Result:
@@ -62,6 +54,8 @@ Function parse($inURL : Text)
62
54
// ref: ref
63
55
// queryParams: [{name: "query"; value: "param"}]
64
56
57
+ This._init()
58
+
65
59
If (Length($inURL)>0)
66
60
67
61
// See: https://www.rfc-editor.org/rfc/rfc3986#appendix-B
0 commit comments