You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this issue during writing tests for yii.js.
Currently in yii.js we have reloadableScripts property used in initScriptFilter() function. It supports wildcards since ea0c6d7:
/** * List of JS or CSS URLs that can be loaded multiple times via AJAX requests. * Each item may be represented as either an absolute URL or a relative one. * Each item may contain a wildcart matching character `*`, that means one or more * any characters on the position. For example: * - `/css/*.js` will match any file ending with `.js` in the `css` directory of the current web site * - `http*://cdn.example.com/*` will match any files on domain `cdn.example.com`, loaded with HTTP or HTTPS * - `/js/myCustomScript.js?realm=*` will match file `/js/myCustomScript.js` with defined `realm` parameter */reloadableScripts: [],
However, this statement in JSDoc:
Each item may contain a wildcart matching character *, that means one or more * any characters on the position.
I found this issue during writing tests for
yii.js
.Currently in
yii.js
we havereloadableScripts
property used ininitScriptFilter()
function. It supports wildcards since ea0c6d7:However, this statement in JSDoc:
contradicts with reality.
0
characters is allowed, so when we set:/js/.js
will be a valid combination.Example for easier reproducing:
match
will have a valuetrue
. Looks like a bug for me.The text was updated successfully, but these errors were encountered: