(regex)
| 227 | } |
| 228 | |
| 229 | function getNativeFlags (regex) { |
| 230 | return (regex.global ? "g" : "") + |
| 231 | (regex.ignoreCase ? "i" : "") + |
| 232 | (regex.multiline ? "m" : "") + |
| 233 | (regex.extended ? "x" : "") + // Proposed for ES4; included in AS3 |
| 234 | (regex.sticky ? "y" : ""); |
| 235 | } |
| 236 | |
| 237 | function indexOf (array, item, from) { |
| 238 | if (Array.prototype.indexOf) // Use the native array method if available |