Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rash grammar fix
--- rash-html.rng 2015-03-07 02:32:38.000000000 +0900
+++ rash-html-fixed.rng 2015-03-08 13:39:07.000000000 +0900
@@ -14,7 +14,7 @@
Under the following terms:
* Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
-->
-<grammar
+<grammar ns="http://www.w3.org/1999/xhtml"
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
@@ -27,8 +27,8 @@
<element name="html">
<attribute name="prefix">
<data type="string">
- <param name="pattern">.*schema:\s+http://schema.org/.*</param>
- <param name="pattern">.*prism:\s+http://prismstandard.org/namespaces/basic/2.0/.*</param>
+ <param name="pattern">[\s\S]*schema:\s+http://schema.org/[\s\S]*</param>
+ <param name="pattern">[\s\S]*prism:\s+http://prismstandard.org/namespaces/basic/2.0/[\s\S]*</param>
</data>
</attribute>
<ref name="attributes_html_generic" />
@@ -895,4 +895,4 @@
<ref name="attributes_rdfa_macro" />
</define>
<!-- /END Content Models -->
-</grammar>
\ No newline at end of file
+</grammar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.