Needs work
Project:
Alinks
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2019 at 07:58 UTC
Updated:
8 Oct 2019 at 16:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mukundhraj commentedComment #3
mukundhraj commentedComment #4
mukundhraj commentedComment #5
neppolian commentedComment #6
osopolar#4 looks complicated, wouldn't it be enough to just sort the keywords descending by length and start replacement with the longest keyword? As
length("Hello World") > length("Hello")this should result in replacing first "Hello World" and if there is somewhere a "Hello" left, then it might be replaced too.@mukundhraj: What do you think? Am I missing something?