You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2020/04/03 11:53:24 UTC

[incubator-annotator] 09/09: Add missing valid characters

This is an automated email from the ASF dual-hosted git repository.

gerben pushed a commit to branch fragment-tests
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit ae31a814fd915f1321e5cf978ee3905c692af394
Author: Gerben <ge...@treora.com>
AuthorDate: Fri Apr 3 13:41:34 2020 +0200

    Add missing valid characters
    
    And remove unnecessary escaping.
    
    Basing on the grammar in RFC 3986. Characters that are invalid in
    fragment identifiers are nevertheless left in place for compatibility
    (i.e. < > [ ])
---
 packages/fragment-identifier/src/fragment.pegjs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/fragment-identifier/src/fragment.pegjs b/packages/fragment-identifier/src/fragment.pegjs
index c19c6bd..7e4d5b5 100644
--- a/packages/fragment-identifier/src/fragment.pegjs
+++ b/packages/fragment-identifier/src/fragment.pegjs
@@ -71,5 +71,5 @@ atom
 //   selector(type=TextQuoteSelector,exact=example%20(that%20fails))
 //   selector(type=TextQuoteSelector,exact=another))failure)
 validchar
-    = [a-zA-Z0-9\<\>\/\[\]\:%+@.\-!\$\&\;*_\(]
+    = [a-zA-Z0-9<>/[\]:%+@.\-!$&;*_~';(]
     / $( ")" &[^,)] )