Skip to content

Commit

Permalink
Update paragraph regex on policies
Browse files Browse the repository at this point in the history
  • Loading branch information
spassarop committed Dec 20, 2023
1 parent 2170312 commit 93b163b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/antisamy-anythinggoes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<regexp name="anything" value=".*" />
<regexp name="numberOrPercent" value="(\d)+(%{0,1})" />
<regexp name="paragraph" value="([\p{L}\p{N},'\.\s\-_\(\)]|&amp;[0-9]{2};)*" />
<regexp name="paragraph" value="[\p{L}\p{N},'.\s\-_\(\)&amp;;]*" />
<regexp name="htmlId" value="[a-zA-Z0-9\:\-_\.]+" />
<regexp name="htmlTitle" value="[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&amp;]*" /> <!-- force non-empty with a '+' at the end instead of '*' -->
<regexp name="htmlClass" value="[a-zA-Z0-9\s,\-_]+" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/antisamy-ebay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<regexp name="anything" value=".*" />
<regexp name="numberOrPercent" value="(\d)+(%{0,1})" />
<regexp name="paragraph" value="([\p{L}\p{N},'\.\s\-_\(\)]|&amp;[0-9]{2};)*" />
<regexp name="paragraph" value="[\p{L}\p{N},'.\s\-_\(\)&amp;;]*" />
<regexp name="htmlId" value="[a-zA-Z0-9\:\-_\.]+" />
<regexp name="htmlTitle" value="[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&amp;]*" /> <!-- force non-empty with a '+' at the end instead of '*' -->
<regexp name="htmlClass" value="[a-zA-Z0-9\s,\-_]+" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/antisamy-myspace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<regexp name="anything" value=".*" />
<regexp name="numberOrPercent" value="(\d)+(%{0,1})" />
<regexp name="paragraph" value="([\p{L}\p{N},'\.\s\-_\(\)]|&amp;[0-9]{2};)*" />
<regexp name="paragraph" value="[\p{L}\p{N},'.\s\-_\(\)&amp;;]*" />
<regexp name="htmlId" value="[a-zA-Z0-9\:\-_\.]+" />
<regexp name="htmlTitle" value="[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&amp;]*" /> <!-- force non-empty with a '+' at the end instead of '*' -->
<regexp name="htmlClass" value="[a-zA-Z0-9\s,\-_]+" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/antisamy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<regexp name="anything" value=".*" />
<regexp name="numberOrPercent" value="(\d)+(%{0,1})" />
<regexp name="paragraph" value="([\p{L}\p{N},'\.\s\-_\(\)]|&amp;[0-9]{2};)*" />
<regexp name="paragraph" value="[\p{L}\p{N},'.\s\-_\(\)&amp;;]*" />
<regexp name="htmlId" value="[a-zA-Z0-9\:\-_\.]+" />
<regexp name="htmlTitle" value="[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&amp;]*" /> <!-- force non-empty with a '+' at the end instead of '*' -->
<regexp name="htmlClass" value="[a-zA-Z0-9\s,\-_]+" />
Expand Down

0 comments on commit 93b163b

Please sign in to comment.