Yegor
Yegor
`/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm`
[StringPrototype.replace polyfill](https://github.com/es-shims/es5-shim/blob/master/es5-shim.js#L1892) If the `searchValue` equal `/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm` and `match` equal '\* some list item;' we get null in 1892 code line but not the groups.
I mean next case: ``` javascript var reg = /(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm; var str = "+ first item in list;\n\n+ second item in list;\n~0"; str.replace(reg, function ()...
I am shure, firefox version 24 is one of them. And I assume, all firefox versions untill 33 act the same. [Gecko-specific notes (in bottom of article)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) [RegExp.$N mozilla bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1053944)...
The same problem: Web hook tells me ```json {"success":false,"data":[{"code":"invalid_payload","message":"[Missing Commit ID] won't be imported."}]} ``` Plugin writes in log ``` [28-Jul-2022 04:17:12 UTC] PHP Notice: Undefined property: stdClass::$message in /home/y/ylitvyakov/public_html/wp-content/plugins/wp-github-sync/lib/client/base.php...
@mAAdhaTTah got you. Thanks for reply 🙏