Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3e21febe
Commit
3e21febe
authored
Jun 24, 2013
by
Gary Wong
Browse files
Permit underscores in sub-authority names.
parent
cebc06dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniHRN.pm.in
View file @
3e21febe
...
...
@@ -97,7 +97,7 @@ sub IsValid($)
# mandatory: partly to avoid ambiguity between resource type
# namespaces, and partly to avoid ambiguity between a resource-type
# and a resource-name containing (escaped) whitespace.
return $hrn =~ m'
^[
uU
][
rR
][
nN
]:[
pP
][
uU
][
bB
][
lL
][
iI
][
cC
][
iI
][
dD
]:
IDN
\+[
A
-
Za
-
z0
-
9.
-]+(?::[
A
-
Za
-
z0
-
9.
-]+)*\+\
w
+\+(?:[-
!$()*,./0-9:=@A-Z_a-z]|(?:%[0-9A-Fa-f][0-9A-Fa-f]))+$';
return $hrn =~ m'
^[
uU
][
rR
][
nN
]:[
pP
][
uU
][
bB
][
lL
][
iI
][
cC
][
iI
][
dD
]:
IDN
\+[
A
-
Za
-
z0
-
9.
-]+(?::[
A
-
Za
-
z0
-
9.
-
_
]+)*\+\
w
+\+(?:[-
!$()*,./0-9:=@A-Z_a-z]|(?:%[0-9A-Fa-f][0-9A-Fa-f]))+$';
}
#
Perform
RFC
3151
transcription
(
from
a
string
of
legal
public
identifier
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment