Regex is not case sensitive in Action Designer

  • Автор темы Автор темы lokiys
  • Дата начала Дата начала

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 921
Реакции
1 206
Баллы
113
Is not regex by default case sensitive ?
Regex: >BACK</button>$

And it match:
1. <button _ngcontent-c9="" class="btn standard btn-secondary" type="button">BACK</button>
2. <button _ngcontent-c9="" class="btn standard btn-secondary" type="button">Back</button>
 
Back_regex.png
 
Need more details on how to reproduce it. Maybe you use C# for regex?
 
You can enable case sensitive again by prepending (?-i) to the regexp.


I am not sure that this is the good idea. Changing this behavior will break backward compatibility for all templates.

Regex should be case sensitive by default man, this is not my suggestion, but this is how regex should work in general.
 
Regex should be case sensitive by default man, this is not my suggestion, but this is how regex should work in general.
I agree with you. But imagine how many projects have been created and changing regex behavior will break them. But that's only my opinion. Anyway, task was created and developers will think about it.
 
  • Спасибо
Реакции: lokiys

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)