Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Assistant: Make Write Brief no longer flag single quotes as spelling errors #39735

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

AI Assistant: Make Breve no longer flag single quotes as spelling errors
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ export default function spellingMistakes( text: string ): Array< HighlightedText
const subWords = word.split( /[-/]/ );

subWords.forEach( subWord => {
// remove single quotes from beginning/end
subWord = subWord.replace( /^'+|'+$/g, '' );

if ( ! spellChecker.correct( subWord ) ) {
const subWordStartIndex = startIndex + word.indexOf( subWord );

Expand Down
Loading