Strip invalid char data from strings on save#329
Conversation
jasonleenaylor
left a comment
There was a problem hiding this comment.
Reviewed 4 of 4 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @hahn-kev)
|
@jasonleenaylor I've added a link to a Wikipedia page documenting valid xml chars. One thing it mentioned is that |
|
Sorry that I didn't see your comment before, yes we should include that range. It is very likely someone using FieldWorks will have a character in that range. |
|
@jasonleenaylor I worked with Martin H and rewrote the regex to just match the invalid characters that we want to remove, and he helped me come up with a test case which was outside the normal range. |
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 2 of 2 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @hahn-kev)
relates to #328
I didn't see anything stripping out data, so I've gone ahead and done that via a compiled regex.
This change is