3
我們最近提出從CF 10到CF 2016年偶然發現了以下問題:與replaceList功能意外行爲
<cfscript>
x = "abc";
x = replaceList(x, "ab|cd", "1|2", "|");
writeDump(x);
// CF 11, CF 2016
// >> 12
// CF 10, Railo/Lucee
// >> 1c
// --------------------
x = "abc";
x = replaceList(x, "ab,cd", "1,2", ",");
writeDump(x);
// CF 11, CF 2016
// >> 1c
// CF 10, Railo/Lucee
// >> 1c
</cfscript>
這到底是怎麼回事?爲什麼Adobe更改not documented?這是否意味着改變?
更新:
Bug Report #4164200申請與Adobe
感謝您的見解。我沒有想過正則表達式。我報告了它:https://bugbase.adobe.com/index.cfm?event=bug&id=4164200 – Alex
不客氣。我認爲靈活性不一定是壞事,但是......即使這是他們的意圖,他們至少應該提到文檔中的行爲;-) – Leigh