Skip to content

Commit

Permalink
Parse User Defined Attributes in WMarker.cs
Browse files Browse the repository at this point in the history
As per the USFM Documentation:
https://ubsicap.github.io/usfm/attributes/index.html#user-defined-attributes

> Any user defined attributes must begin with the prefix x-.
  • Loading branch information
jsarabia authored Jan 3, 2024
1 parent 1e3a4e0 commit 242318d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion USFMToolsSharp/Models/Markers/WMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class WMarker : Marker
{
public string Term;
public Dictionary<string, string> Attributes;
private static Regex wordAttrPattern = new Regex("([\\w]+)=?\"?([\\w,:.]*)\"?", RegexOptions.Singleline);
private static Regex wordAttrPattern = new Regex("([\\w-]+)=?\"?([\\w,:.]*)\"?", RegexOptions.Singleline);
public override string Identifier => "w";

public override string PreProcess(string input)
Expand Down

0 comments on commit 242318d

Please sign in to comment.