mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Altered anonymous resources to be produced with a hash mark, so they look more like anchors.
This commit is contained in:
parent
a807e42440
commit
8d4d9030f7
@ -424,7 +424,7 @@ static PRUint32 gCounter = 0;
|
||||
|
||||
do {
|
||||
nsAutoString s(aContextURI);
|
||||
s.Append('$');
|
||||
s.Append("#$");
|
||||
s.Append(++gCounter, 10);
|
||||
|
||||
nsIRDFResource* resource;
|
||||
@ -464,7 +464,7 @@ rdf_IsAnonymousResource(const nsString& aContextURI, nsIRDFResource* aResource)
|
||||
uri.Cut(0, aContextURI.Length());
|
||||
|
||||
// Anonymous resources look like the regexp "\$[0-9]+"
|
||||
if (uri[0] != '$')
|
||||
if (uri[0] != '#' || uri[1] != '$')
|
||||
return PR_FALSE;
|
||||
|
||||
for (PRInt32 i = uri.Length() - 1; i >= 1; --i) {
|
||||
|
Loading…
Reference in New Issue
Block a user