IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.82k stars 352 forks source link

StartCase doesn't work with uppercase text #304

Open vwkd opened 3 years ago

vwkd commented 3 years ago
  1. Take "HELLO WORLD"
  2. Convert to StartCase
  3. Observe no effect
  4. Convert to Downcase
  5. Convert to StartCase
  6. Observe desired effect.
Lockyc commented 3 years ago

You can create a custom script.

/**
    {
        "api":1,
        "name":"Start Case",
        "description":"Converts Your Text To Start Case.",
        "author":"Ivan",
        "icon":"type",
        "tags":"start,case,function,lodash"
    }
**/

const { startCase } = require('@boop/lodash.boop')

function main(input) {

    input.text = startCase(input.text.toLowerCase())

}
niekvandepas commented 3 years ago

Seeing this issue as well on Boop 1.4.0 on macOS Big Sur 11.6.