Changeset 27649
- Timestamp:
- 03/21/2014 09:03:59 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/theme.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r27643 r27649 180 180 this.reset( themes.data.themes, { silent: true } ); 181 181 182 // The RegExp object to match 183 // 182 // Escape the term string for RegExp meta characters 183 term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' ); 184 184 185 // Consider spaces as word delimiters and match the whole string 185 186 // so matching terms can be combined 186 term = term.replace( ' ', ')(?=.*' );187 term = term.replace( / /g, ')(?=.*' ); 187 188 match = new RegExp( '^(?=.*' + term + ').+', 'i' ); 188 189
Note: See TracChangeset
for help on using the changeset viewer.