зеркало из https://github.com/mozilla/pjs.git
Altered anonymous resources to be produced with a hash mark, so they look more like anchors.
This commit is contained in:
Родитель
35b5730c08
Коммит
611f40b423
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче