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

BUG: split not behaving correctly #172

Open
Oliver-De-Fusco opened this issue Nov 16, 2024 · 0 comments
Open

BUG: split not behaving correctly #172

Oliver-De-Fusco opened this issue Nov 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Oliver-De-Fusco
Copy link

Version (please complete the following information):

  • OS: Windows
  • Browser Firefox
  • Web Clipper version: 0.9.7

Describe the bug

split does not split letters out when used after first and instead I have to use split:""

Expected behavior

What did you expect to happen?

If author name is "June" then It should give "J" not "June" when using just split

URLs where the bug occurs

I started with the FT then tested on other sites and random articles.

https://www.ft.com/content/a7288a4d-eb3a-4464-9b82-e3eb0e087930

https://www.theguardian.com/inequality/2024/nov/16/middle-class-millennials-set-to-gain-most-from-unprecedented-wealth-transfer

https://www.dailymail.co.uk/news/article-14090457/keir-starmer-dodges-farmers-protest-welsh-labour-party-conference-llandudno.html

https://www.cnbc.com/2024/11/14/stock-market-today-live-updates.html

To reproduce

Steps to reproduce the behavior:

  1. Create template file
  2. Go to article
  3. Use template with clipper

Your template file

If you are using a custom template (i.e. not the Default template). Go to Web Clipper settings and click MoreCopy as JSON. Paste the JSON code below.

{
  "schemaVersion": "0.1.0",
  "name": "Bug report",
  "behavior": "create",
  "noteContentFormat": "\n# Works\n{{author|split:\" \"|first|split:\"\"|first}}\n\n\n# Does not work\n{{author|split:\" \"|first|split|first}}\n",
  "properties": [],
  "triggers": [],
  "noteNameFormat": "{{title}}",
  "path": "Clippings"
}
@Oliver-De-Fusco Oliver-De-Fusco changed the title BUG: BUG: split not behaving correctly Nov 16, 2024
@kepano kepano added the bug Something isn't working label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants