Skip to content

Commit

Permalink
Fix end-tag xml colorizer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmcohn committed Dec 27, 2020
1 parent b4b36e0 commit 86dddfe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OneMore/Colorizer/Languages/xml.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
]
},
{
"pattern": "(?xi)(<\\/)(?:([a-z][a-z0-9-])(:))?([a-z][a-z0-9-_\\.]*)(>)",
"pattern": "(?xi)(<\\/)(?:([a-z][a-z0-9-]*)(:))?([a-z][a-z0-9-_\\.]*)(>)",
"captures": [
"XmlDelimeter",
"XmlName",
Expand Down
2 changes: 1 addition & 1 deletion OneMore/Helpers/Extensions/XCDataExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static XElement GetWrapper(this XCData cdata)
// XElement doesn't like <br> so replace with <br/>
value = Regex.Replace(value, @"\<\s*br\s*\>", "<br/>");

// quote unquote language attribute, e.g., lang=yo to lang="yo" (or two part en-US)
// quote unquoted language attribute, e.g., lang=yo to lang="yo" (or two part en-US)
value = Regex.Replace(value, @"(\s)lang=([\w\-]+)([\s/>])", "$1lang=\"$2\"$3");

try
Expand Down
Binary file added Templates/OneNote_Keyboard_Shortcuts.zip
Binary file not shown.

0 comments on commit 86dddfe

Please sign in to comment.