organize icon indicating copy to clipboard operation
organize copied to clipboard

startswith doesn't work with accents

Open misterio2051 opened this issue 5 years ago • 1 comments

As the title says. I have the following rule:

# Cálculo PDF
rules:
  - folders: ~/Google Drive/
    subfolders: false
    filters:
      - extension:
         - pdf
      - filename:
          startswith: Cálculo 
    actions:
      - move: "~/Google Drive/Escuela/12vo/Cálculo Integral/Periodo #6/PDF's/"

I've tried adding quotations to the startswith argument but it still doesn't work.

misterio2051 avatar Apr 11 '20 12:04 misterio2051

I just created a unit test but could not reproduce this. My guess is that this is related to #40 and the accents are encoded differently. You could try to copy the á from your filename directly into the script, but this is just a workaround.

tfeldmann avatar Apr 30 '20 16:04 tfeldmann

Closing this as duplicate of #40.

tfeldmann avatar Aug 17 '22 17:08 tfeldmann