Skip to content

Commit

Permalink
fix: spelling of pseudo in varies places
Browse files Browse the repository at this point in the history
  • Loading branch information
jonah1und1 committed Oct 9, 2024
1 parent 1717444 commit 14c5b7e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/owasp/validator/css/CssValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ public boolean isValidCondition(String selectorName, Condition condition) throws
policy.getCommonRegularExpressions("cssIDSelector"),
policy.getCommonRegularExpressions("cssIDExclusion"));
case Condition.SAC_PSEUDO_CLASS_CONDITION:
// this is a basic psuedo element condition; compare condition
// this is a basic pseudo-element condition; compare condition
// against valid pattern and is not blacklisted by exclusion pattern

return validateCondition(
(AttributeCondition) condition,
policy.getCommonRegularExpressions("cssPseudoElementSelector"),
policy.getCommonRegularExpressions("cssPsuedoElementExclusion"));
policy.getCommonRegularExpressions("cssPseudoElementExclusion"));
case Condition.SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION:
case Condition.SAC_ONE_OF_ATTRIBUTE_CONDITION:
case Condition.SAC_ATTRIBUTE_CONDITION:
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/antisamy-anythinggoes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
<!-- This is for pseudo-element selector (ex. foo:pseudo-element { ... } -->
<regexp name="cssPseudoElementSelector" value=":[a-zA-Z0-9\-_]+" />

<!-- This is to list out any psuedo-element names that are *not* valid -->
<regexp name="cssPsuedoElementExclusion" value="" />
<!-- This is to list out any pseudo-element names that are *not* valid -->
<regexp name="cssPseudoElementExclusion" value="" />

<!-- This is for attribute selectors (ex. foo[attr=value] { ... } -->
<regexp name="cssAttributeSelector" value="\[[a-zA-Z0-9\-_]+((=|~=|\|=){1}[a-zA-Z0-9\-_]+){1}\]" />
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/antisamy-ebay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<!-- This is for pseudo-element selector (ex. foo:pseudo-element { ... } -->
<regexp name="cssPseudoElementSelector" value=":[a-zA-Z0-9\-_]+" />

<!-- This is to list out any psuedo-element names that are *not* valid -->
<regexp name="cssPsuedoElementExclusion" value="" />
<!-- This is to list out any pseudo-element names that are *not* valid -->
<regexp name="cssPseudoElementExclusion" value="" />

<!-- This is for attribute selectors (ex. foo[attr=value] { ... } -->
<regexp name="cssAttributeSelector" value="\[[a-zA-Z0-9\-_]+((=|~=|\|=){1}[a-zA-Z0-9\-_]+){1}\]" />
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/antisamy-myspace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
<!-- This is for pseudo-element selector (ex. foo:pseudo-element { ... } -->
<regexp name="cssPseudoElementSelector" value=":[a-zA-Z0-9\-_]+" />

<!-- This is to list out any psuedo-element names that are *not* valid -->
<regexp name="cssPsuedoElementExclusion" value="" />
<!-- This is to list out any pseudo-element names that are *not* valid -->
<regexp name="cssPseudoElementExclusion" value="" />

<!-- This is for attribute selectors (ex. foo[attr=value] { ... } -->
<regexp name="cssAttributeSelector" value="\[[a-zA-Z0-9\-_]+((=|~=|\|=){1}[a-zA-Z0-9\-_]+){1}\]" />
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/antisamy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
<!-- This is for pseudo-element selector (ex. foo:pseudo-element { ... } -->
<regexp name="cssPseudoElementSelector" value=":[a-zA-Z0-9\-_]+" />

<!-- This is to list out any psuedo-element names that are *not* valid -->
<regexp name="cssPsuedoElementExclusion" value="" />
<!-- This is to list out any pseudo-element names that are *not* valid -->
<regexp name="cssPseudoElementExclusion" value="" />

<!-- This is for attribute selectors (ex. foo[attr=value] { ... } -->
<regexp name="cssAttributeSelector" value="\[[a-zA-Z0-9\-_]+((=|~=|\|=){1}[a-zA-Z0-9\-_]+){1}\]" />
Expand Down

0 comments on commit 14c5b7e

Please sign in to comment.