User:BryghtShadow/sandbox/de-sic

From Guild Wars 2 Wiki
Jump to navigationJump to search

Remove the all occurrences of {{sic}}; otherwise leave it unaltered. Applies regex to {{sic}}.


Documentation[edit]

parameter 1
input that (possibly) contains {{sic}}
input output
"{{:User:BryghtShadow/sandbox/de-sic|This is an eggsample {{sic|example}} of an omelette.}}" "This is an eggsample [sic] of an omelette."
"{{:User:BryghtShadow/sandbox/de-sic|This is an eggsample of an omelette.}}" "This is an eggsample of an omelette."
"{{:User:BryghtShadow/sandbox/de-sic|This is a bananana {{sic|banana}} peal. {{sic|peel}}}}" "This is a bananana [sic] peal. [sic]"

Test[edit]

DOM
<span style="margin: 0em 0.1em; font-size: 85%; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;">[''[[wikipedia:sic|<span style="cursor: help; border-bottom: 1px dotted silver;" title="example">sic</span>]]'']</span>
expected == actual
0No Fail