End of Line problem in Adobe apps

I’m creating contextual end swashes.

sub @SwashEndBases' by @SwashEnd;

But when I add an Ignore Sub rule before to only have the replacement at the end of a line …

ignore sub @SwashEndBases' @All;

… the replacement stops working in Adobe apps (but not TextEdit for example).
The All class is created by Glyphs. When I limit the class to the automatic “AllLetters” it starts working again.
So it feels like something in the All class is always matching the way Adobe treats line endings or it is breaking the feature somehow.
Anyone knows what is going on?

Here is the All class in case it matters.

A Aacute Acircumflex Adieresis Agrave Aring Atilde AE B C Ccedilla D Eth E Eacute Ecircumflex Edieresis Egrave F G H I Iacute Icircumflex Idieresis Igrave J Jacute K L Lslash M N Ntilde O Oacute Ocircumflex Odieresis Ograve Oslash Otilde OE P Thorn Q R S Scaron T U Uacute Ucircumflex Udieresis Ugrave V W Wacute Wcircumflex Wdieresis Wgrave X Y Yacute Ycircumflex Ydieresis Ygrave Z Zcaron AE.alt C.alt Ccedilla.alt E.alt Eacute.alt Ecircumflex.alt Edieresis.alt Egrave.alt G.alt H.alt J.alt Jacute.alt K.alt L.alt O.alt Oacute.alt Ocircumflex.alt Odieresis.alt Ograve.alt Oslash.alt Otilde.alt OE.alt Q.alt S.alt Scaron.alt T.alt V.alt W.alt Wacute.alt Wcircumflex.alt Wdieresis.alt Wgrave.alt Y.alt Yacute.alt Ycircumflex.alt Ydieresis.alt Ygrave.alt Z.alt Zcaron.alt K.swsh L.swsh R.swsh T.swsh K.alt.swsh L.alt.swsh T.alt.swsh Z.alt.swsh a aacute acircumflex adieresis agrave aring atilde ae b c ccedilla d eth e eacute ecircumflex edieresis egrave f g h i idotless iacute icircumflex idieresis igrave j jdotless jacute k l lslash m n ntilde o oacute ocircumflex odieresis ograve oslash otilde oe p thorn q r s scaron germandbls longs t u uacute ucircumflex udieresis ugrave v w wacute wcircumflex wdieresis wgrave x y yacute ycircumflex ydieresis ygrave z zcaron c.alt h.alt k.alt r.alt germandbls.alt v.alt w.alt wacute.alt wcircumflex.alt wdieresis.alt wgrave.alt y.alt yacute.alt ycircumflex.alt ydieresis.alt ygrave.alt z.alt e.swsh k.swsh l.swsh m.swsh n.swsh r.swsh t.swsh c_h c_k f_f f_t fi fl longs_t longs_i longs_longs t_z c_h.alt c_k.alt f_t.swsh longs_t.swsh ordfeminine ordmasculine Omega pi zero one two three four five six seven eight nine fraction onehalf onequarter threequarters onesuperior twosuperior threesuperior space nbspace period comma colon semicolon ellipsis exclam exclamdown question questiondown periodcentered bullet asterisk numbersign slash backslash hyphen endash emdash underscore parenleft parenright braceleft braceright bracketleft bracketright quotesinglbase quotedblbase quotedblleft quotedblright quoteleft quoteright guillemetleft guillemetright guilsinglleft guilsinglright quotedbl quotesingle florin at ampersand section copyright registered trademark degree bar brokenbar dagger daggerdbl cent currency dollar euro sterling yen plus minus multiply divide equal notequal greater less greaterequal lessequal plusminus approxequal asciitilde logicalnot asciicircum infinity integral increment product summation radical micro partialdiff percent perthousand lozenge dieresiscomb dotaccentcomb gravecomb acutecomb hungarumlautcomb circumflexcomb caroncomb ringcomb tildecomb cedillacomb dieresis dotaccent grave acute hungarumlaut circumflex caron breve ring tilde macron cedilla ogonek

What happens if you enable the world ready composer in indesign? (This is not a proper solution but a debugging step)

Same result for both.

I could narrow it down to the space character. If I remove spaces from the All class, it starts working again. But I don’t want replacements at the end of the words that aren’t at the end of the line. For now, I added another Ignore rule to fix this.

    ignore sub @SwashEndBases' @Spaces @All;

Doesn’t feel like an ideal solution, but it works.

It’s worth mentioning that this seems to be a new behaviour in Adobe apps. I used the same code with a font created in 2019 and it definitely worked back then, but this font is now also not showing automatic end swashes anymore in InDesign.