Skip to content

Commit

Permalink
fix: respect word boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyGraceSeville7cf committed Feb 7, 2024
1 parent ab1cf97 commit 9b25892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "string",
"minLength": 1,
"not": {
"pattern": "^\\s+$|\\spx\\s|\\spx$|^px\\s|([A-Za-z]+)\\s\\1|%%"
"pattern": "^\\s+$|\\spx\\s|\\spx$|^px\\s|\\b([A-Za-z]+)\\b\\s+\\1|%%"
},
"examples": [
"focus left",
Expand Down

0 comments on commit 9b25892

Please sign in to comment.