(regex)
| 240 | } |
| 241 | |
| 242 | function getNativeFlags (regex) { |
| 243 | return (regex.global ? "g" : "") + |
| 244 | (regex.ignoreCase ? "i" : "") + |
| 245 | (regex.multiline ? "m" : "") + |
| 246 | (regex.extended ? "x" : "") + // Proposed for ES4; included in AS3 |
| 247 | (regex.sticky ? "y" : ""); |
| 248 | } |
| 249 | |
| 250 | function indexOf (array, item, from) { |
| 251 | if (Array.prototype.indexOf) // Use the native array method if available |