Changeset 672 for trunk/js


Ignore:
Timestamp:
Mar 16, 2019 11:47:40 PM (5 years ago)
Author:
anonymous
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/Utilities.js

    r671 r672  
    225225}
    226226
     227// https://github.com/benjamingr/RegExp.escape
     228if(!RegExp.escape){
     229    RegExp.escape = function(s){
     230        return String(s).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
     231    };
     232}
Note: See TracChangeset for help on using the changeset viewer.