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
a29b929f
Commit
a29b929f
authored
Jun 24, 2013
by
Gary Wong
Browse files
Permit dashes in sub-authority names again.
(This was accidentally broken in the previous commit.)
parent
3e21febe
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniHRN.pm.in
View file @
a29b929f
...
...
@@ -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