A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
307 B

  1. name: embedded NUL in plain text
  2. input: "a\x00b"
  3. output: [Text(text="a\x00b")]
  4. ---
  5. name: embedded NUL in a longer string
  6. input: "hello\x00world"
  7. output: [Text(text="hello\x00world")]
  8. ---
  9. name: embedded NUL inside a template
  10. input: "{{a\x00b}}"
  11. output: [TemplateOpen(), Text(text="a\x00b"), TemplateClose()]