Skip to content

Commit

Permalink
Include space in the check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Oct 2, 2023
1 parent ea8c792 commit a339e87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const wrap =
return selector;
}

if ( selector.trim().startsWith( namespace ) ) {
// Skip the update when a selector already has a namespace + space (" ").
if ( selector.trim().startsWith( `${ namespace } ` ) ) {
return selector;
}

Expand Down

0 comments on commit a339e87

Please sign in to comment.