dis-moi / dis-moi/backend

text() function in Xpath is case sensitive

Open
#362 4 comments 0 reactions 0 assignees View on GitHub
analytics question Size M :shirt:
Dominant language
PHP
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi is there a simple way to make this **text()** function not case sensitive?
The workaround I found it to use

> text()[ contains( translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'test')]

instead of

> text()[contains(.,'test')]

It is pretty annoying, and the input needs to be in lowercase.

Contributor guide

Open the contributing guide

Research direction

The issue provides only the two XPath text() expressions and no file or test location. Start by locating where XPath expressions are handled in the PHP backend, then determine whether case-insensitive matching is supported there; done means the requested matching works without requiring lowercase input and is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.