New issue
Advanced search Search tips

Issue 888292 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 24
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security:

Reported by 201329...@newton.k12.ma.us, Sep 23

Issue description

There is a problem in google docs for word count. If you type a word and it is followed by a double space like so: Bob went to the beach  and was tan. The program will count the double space as an extra word. Here is how to fix it:

var letters = Set<Character>()
for c in "abcdefghijklmnopqrstuvwxyz"{
    letters.insert(c)
}
var b: Bool = true
let mydocument = "once  upon a  time !there  was# a boy.  "
var numberOfWords = 0
for c in mydocument {
    if letters.contains(c) { 
        b = true
    }
    else {
        if b {
            numberOfWords += 1
        }
        b=false
    }
}
print("there are \(numberOfWords) words in my document")

Good Luck



 
Status: WontFix (was: Unconfirmed)
Unfortunately there's not much that chrome can do in this case. This issue tracker isn't intended for general issues in google properties.
Project Member

Comment 2 by sheriffbot@chromium.org, Jan 1

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment